Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 我想问一下如何将自己的form加入到delphi的向导中
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 我想问一下如何将自己的form加入到delphi的向导中
nil
新警察
UID 350
Digest Posts 0
Credits 6
Posts 6
点点分 6
Reading Access 10
Registered 2004-3-24
Status Offline
#1
Post at 2005-4-16 02:53
Profile
|
Site
|
Blog
|
P.M.
|
|
我想问一下如何将自己的form加入到delphi的向导中
就想cnpack的3个form向导一样,可以新建,
我能加入进去,但是每次重新装d7的时候,要重新加入一遍,我想知道的是
delphi是如何知道
C:\Program Files\CnPack\CnWizards\Data\Templates里的单元并加入到new Item窗口中去的,
是哪个配置文件在控制这个东西,
谢谢
nil
新警察
UID 350
Digest Posts 0
Credits 6
Posts 6
点点分 6
Reading Access 10
Registered 2004-3-24
Status Offline
#2
Post at 2005-4-16 03:16
Profile
|
Site
|
Blog
|
P.M.
|
|
C:\Program Files\Borland\Delphi7\Bin\delphi32.dro
仿佛是干这个的,但是没有cnpack的包在里面啊,那么cnpack怎么做到呢?
nil
新警察
UID 350
Digest Posts 0
Credits 6
Posts 6
点点分 6
Reading Access 10
Registered 2004-3-24
Status Offline
#3
Post at 2005-4-18 11:49
Profile
|
Site
|
Blog
|
P.M.
|
|
管理员帮帮我阿
zjy
管理员
UID 2
Digest Posts
6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
#4
Post at 2005-4-18 12:06
Profile
|
Site
|
Blog
|
P.M.
Delphi 提供了三种方式在 New Items 中重用单元和窗体:第一种是从当前打开的工程中继承一个新的窗体,第二种是在设计期对窗体点右键选择“Add to Repository”,将窗体加到重用库中,第三种是通过使用 Open Tools API 编写一个专家来动态生成新的单元、窗体和工程。
CnWizards 里的 New Items 向导,是通过 Open Tools API 实现的,生成的单元和工程是用程序动态创建的,CnWizards\Data\Templates 里面放的只是程序用到的模板。
关于 New Items 向导扩展,可以看看 D7 自带的帮助中相关主题,这里有 CnPack 开发组翻译的中文版:
http://www.cnpack.org/showdetail.php?id=281
其中“创建窗体和工程”部分有相关说明。
Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-23 05:48
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.011429 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats