|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
|
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 请大侠帮我看看,谢谢~~~
----------------------------------------------
|
作者: |
|
2018/10/6 13:15:29 |
1楼: |
你在TDesignerHook类里边加上CanInsertComponent这个方法就可以了。
----------------------------------------------
-
|
作者: |
|
2018/10/6 14:33:15 |
2楼: |
如何加,加在哪儿?楼上能写出来吗?我比较菜。。。。
----------------------------------------------
|
作者: |
|
2018/10/6 14:51:53 |
3楼: |
我也比较菜,总是赚不到 500万,楼上能送我500万人民币吗?
----------------------------------------------
(C)(P)Flying Wang
|
作者: |
|
2018/10/6 16:41:09 |
4楼: |
放在这个位置: { IDesignerNotify 的接口} procedure Modified; procedure Notification(AnObject: TPersistent; Operation: TOperation); procedure CanInsertComponent(AComponent: TComponent); 不用写实现的代码,空过程就行。是因为IDesignerNotify里多了这个方法,所以类里边也要加上。
----------------------------------------------
-
|
作者: |
|
2018/10/6 17:48:38 |
6楼: |
非常感谢!
----------------------------------------------
|
作者: |
|
2018/10/8 10:25:20 |
7楼: |
Delphi_BK能加我QQ1817203915吗?有些这方面的问题想请教,谢谢!
----------------------------------------------
|
作者: |
|
2018/10/8 15:35:50 |
8楼: |
你找这玩意就是我当年写的。之所以编译不过是因为IDesignerHOOK接口的声明发生了变化。你把变化的方法改一下就好了
----------------------------------------------
武稀松http://www.raysoftware.cn
|
|