我有一个专家代码,是DELHPI5下的,现在想升级为DELHPI7下,遇到问题如下:
DELHPI5下使用的的TOOLSAPI中的DsgnIntf单元,所以下面的注册过程没有问题
procedure Register;
begin
  RegisterCustomModule(TChildForm, TCustomModule);
  RegisterLibraryExpert(TChildFormExpert.Create);
  RegisterLibraryExpert(TwitChildExpert.Create);
end;现在在DELHPI7下我发现取消了DsgnIntf,换成了DesignIntf,DesignConst,DesignEditors,三个函数,在编辑的时候通不过编译,于是我进行如上的三个单元文件的查找,我对Register进行了修改:
procedure Register;
begin
  RegisterCustomModule(TChildForm, TBaseCustomModule);
  RegisterLibraryExpert(TChildFormExpert.Create);
  RegisterLibraryExpert(TwitChildExpert.Create);
end;
编译通过了,但是在NEW ITEMS中只有了我注册的标签页,但是页下没有内容,请高手指教,我该怎么修改注册过程,谢谢!