在frame里添加事件怎么不会显示在object inspector里?

riczhao 2004-09-24 11:25:45
源代码如下:
class TfmDebug : public TFrame
{
typedef void(__closure * p)(int);
__published: // IDE-managed Components
..... //IDE自动声名的在frame里添加的控件,如果把自定义event放在这儿会报错:
//Error in module frmDebug: Incorrect field declaration in class TfmDebug.
private: // User declarations
p m;
public: // User declarations
__fastcall TfmDebug(TComponent* Owner);
__published:
__property p pp={read=m,write=m};
};
在objext inspector里的events页看不到事件pp。
为什么呢?
...全文
72 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lihongxing2002 2004-12-16
  • 打赏
  • 举报
回复
__fastcall
houing_0123 2004-09-24
  • 打赏
  • 举报
回复

thp 2004-09-24
  • 打赏
  • 举报
回复
Maconel 2004-09-24
  • 打赏
  • 举报
回复
这样应该是不行的,好象要自己做成vcl控件,然后引入到需要用的工程里才有。

604

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder VCL组件使用和开发
社区管理员
  • VCL组件使用和开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧