delphi6中的组件编辑器和属性编辑器怎么写?
delphi6中的组件编辑器和属性编辑器是不是要引用 designintf?
组件安装好后,没有问题,
在设计状态也能用,组件编辑器也是好的。
但编译时总找不到 proxies单元,
在d6的原码中没有这个文件,d5中却有proxies.dcu,在lib下,
拷到d6的lib下编译还是不能通过。
delphi6中的组件编辑器和属性编辑器到底要怎么写才能在设计状态和运行状态都能运行?
注意:组件编译时的属性中我设的是设计期和运行期都能用。
问题点数:100、回复次数:4Top
1 楼steelhorse(吾尝终日而思矣,不如须臾之所学也)回复于 2002-04-21 17:47:59 得分 0
自己upTop
2 楼nne998(☆☆☆☆☆☆☆伴月)回复于 2002-04-21 19:36:30 得分 5
参考此贴:
http://www.csdn.net/Expert/TopicView1.asp?id=637233Top
3 楼taxi(当时明月在,曾照彩云归)回复于 2002-04-21 19:51:59 得分 95
NOTE FOR DELPHI 6 users: - DesignIntf.dcu not found.
1. When you compile, you may get a compile error:
File not found: 'DesignIntf.dcu'
Fix: Open Tools > Environment options > Library, and add a path to ToolsAPI, like this:
$(DELPHI)\Source\ToolsAPI
2. After adding that file, if the compile stops in DesignEditors at:
uses DesignConst, Consts, RTLConsts, Contnrs, Proxies;
File not found: 'Proxies.dcu'.
Fix:
a. In DesignEditors.pas, comment Proxies out, like this:
uses DesignConst, Consts, RTLConsts, Contnrs;//, Proxies;
b. In DesignEditors, locate:
function TCustomModule.ValidateComponentClass(ComponentClass:
TComponentClass):
and comment out the code line:
while IsProxyClass(ComponentClass) do
ComponentClass := TComponentClass(ComponentClass.ClassParent);Top
4 楼steelhorse(吾尝终日而思矣,不如须臾之所学也)回复于 2002-04-23 11:15:55 得分 0
我的问题是 写控件没问题,但使用控件的应用程序编译都没法通过。
在delphi5的readme.txt中有一段到是提到写组件最好把设计期代码单独提出来放到另外的单元中。
多谢各位的回答。Top




