DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: jeff1314
今日帖子: 9
在线用户: 3
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 cenunus (cenunus) ★☆☆☆☆ -
普通会员
2018/10/6 11:53:21
标题:
我在论坛翻到个帖子,是关于DesignHook的 浏览:1494
加入我的收藏
楼主: http://www.2ccc.com/btdown.asp?articleid=4367
我用d7和delphixe10都无法编译。
delphixe10编译时出现提示:
[dcc32 Error] DesignHookUtils.pas(51): E2291 Missing implementation of interface method IDesignerNotify.CanInsertComponent
请大侠帮我看看,谢谢~~~
----------------------------------------------
作者:
男 delphi_bk (Delphi_BK) ★☆☆☆☆ -
普通会员
2018/10/6 13:15:29
1楼: 你在TDesignerHook类里边加上CanInsertComponent这个方法就可以了。
----------------------------------------------
-
作者:
男 cenunus (cenunus) ★☆☆☆☆ -
普通会员
2018/10/6 14:33:15
2楼: 如何加,加在哪儿?楼上能写出来吗?我比较菜。。。。
----------------------------------------------
作者:
男 wang_80919 (Flying Wang) ★☆☆☆☆ -
普通会员
2018/10/6 14:51:53
3楼: 我也比较菜,总是赚不到 500万,楼上能送我500万人民币吗?
----------------------------------------------
(C)(P)Flying Wang
作者:
男 delphi_bk (Delphi_BK) ★☆☆☆☆ -
普通会员
2018/10/6 16:41:09
4楼: 放在这个位置:
{ IDesignerNotify 的接口}
    procedure Modified;
    procedure Notification(AnObject: TPersistent; Operation: TOperation);
    procedure CanInsertComponent(AComponent: TComponent);
不用写实现的代码,空过程就行。是因为IDesignerNotify里多了这个方法,所以类里边也要加上。
----------------------------------------------
-
作者:
男 hujiacheng ( 旺财) ★☆☆☆☆ -
普通会员
2018/10/6 17:24:57
5楼: 不实现代码也行啊。。学到了。。从未试过。
----------------------------------------------
免费的FTPhttps://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019>http://delphi-z.ruhttps://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019>http://delphi.icm.edu.pl/ftp/https://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019>http://delphi-z.ruhttps://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win64/zh-CN/https://cc.embarcadero.com/Author/575019
作者:
男 cenunus (cenunus) ★☆☆☆☆ -
普通会员
2018/10/6 17:48:38
6楼: 非常感谢!
----------------------------------------------
作者:
男 cenunus (cenunus) ★☆☆☆☆ -
普通会员
2018/10/8 10:25:20
7楼: Delphi_BK能加我QQ1817203915吗?有些这方面的问题想请教,谢谢!
----------------------------------------------
作者:
男 wr960204 (武稀松) ★☆☆☆☆ -
盒子活跃会员
2018/10/8 15:35:50
8楼: 你找这玩意就是我当年写的。之所以编译不过是因为IDesignerHOOK接口的声明发生了变化。你把变化的方法改一下就好了
----------------------------------------------
武稀松http://www.raysoftware.cn
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行376.9531毫秒 RSS