这是我D7下装coolform控件时遇到的这个问题哈。
1、添加 lib\designide.dcp到控件的dpk文件的requires部分
2、在控件的pas源文件中凡是uses dsgnintf的地方改成
uses designintf,designeditors
3、加入搜索路径
C:\Program Files\Borland\Delphi7\Source\ToolsAPI
4、implementation部分把Proxies隐掉
uses DesignConst, Consts, RTLConsts, Contnrs{Proxies};
5、找到并把
if (FAncestor = nil) and (Component <> Designer.Root)
and IsProxyClass(Component.ClassType) then
改为
if (FAncestor = nil) and (Component <> Designer.Root)
{and IsProxyClass(Component.ClassType)} then
6、找到并把
while IsProxyClass(ComponentClass) do
改为
//while IsProxyClass(ComponentClass) do
7、保存,编译运行,OK
附件为我原来下载的文件做成的dpk形式哈

文章主要方法来自:http://www.samool.com/show-264-1.html
另:http://vclxx.org/forum/index.php?topic=9473.msg28767也值得一看哈。
评论
发表评论

您还没有登录,请登录后发表评论

mathsfan
  • 浏览: 137753 次
  • 性别: Icon_minigender_1
  • 来自: 浙江省杭州市
  • 详细资料
搜索本博客
我的相册
558da78e-b80d-38bb-9bdf-e0bcda4b821b-thumb
文章配图20
共 24 张
存档
最新评论