在通过一些已知信息,了解到,在DELPHI6下作的改进,如“DsgnIntf 的引用应该被改变为新的 Delphi 6 名称,DesignIntf”
我把 DesignIntf 的.DUC 文件搞好后在安装组件时,又碰一个新的问题,
------------------------------------------------------------------------- type
TOLItemsProperty = class (TClassProperty)
public
function GetAttributes: TpropertyAttributes; override;
procedure Edit; override;
end;-------------------------------------------------------------------------这一段,编不过,以有的资料是
组件编辑器的变化
类 TComponentEditor 在 Delphi 6 里有不同的祖先系。在 Delphi 5 里,它从 TInterfacedObject 继承;现在它从一个新的类 TBaseComponentEditor 继承。类 TComponentEditorClass 现在也是 TBaseComponentEditor 而不是 TComponentEditor 的一个类。这些层次体系上的变化会要求你修改你的旧的 Delphi 工程。提示是 TClassProperty 没有定义,我在 新的DesignIntf里,似乎没有合适的类用来继承;因为没有类直接定义了function GetAttributes: TpropertyAttributes; override;与procedure Edit; override; 但有
IProperty = interface
['{7ED7BF29-E349-11D3-AB4A-00C04FB17A72}']
...
function GetAttributes: TPropertyAttributes;
...
和
ICustomModule = interface
['{95DA4A2B-D800-4CBB-B0B8-85AB7D3CFADA}']
function GetAttributes: TCustomModuleAttributes;
...看不懂呢,,,Interface....唉谢谢大家了,, 请看看———
我把 DesignIntf 的.DUC 文件搞好后在安装组件时,又碰一个新的问题,
------------------------------------------------------------------------- type
TOLItemsProperty = class (TClassProperty)
public
function GetAttributes: TpropertyAttributes; override;
procedure Edit; override;
end;-------------------------------------------------------------------------这一段,编不过,以有的资料是
组件编辑器的变化
类 TComponentEditor 在 Delphi 6 里有不同的祖先系。在 Delphi 5 里,它从 TInterfacedObject 继承;现在它从一个新的类 TBaseComponentEditor 继承。类 TComponentEditorClass 现在也是 TBaseComponentEditor 而不是 TComponentEditor 的一个类。这些层次体系上的变化会要求你修改你的旧的 Delphi 工程。提示是 TClassProperty 没有定义,我在 新的DesignIntf里,似乎没有合适的类用来继承;因为没有类直接定义了function GetAttributes: TpropertyAttributes; override;与procedure Edit; override; 但有
IProperty = interface
['{7ED7BF29-E349-11D3-AB4A-00C04FB17A72}']
...
function GetAttributes: TPropertyAttributes;
...
和
ICustomModule = interface
['{95DA4A2B-D800-4CBB-B0B8-85AB7D3CFADA}']
function GetAttributes: TCustomModuleAttributes;
...看不懂呢,,,Interface....唉谢谢大家了,, 请看看———
DING····