在frame里添加事件怎么不会显示在object inspector里?
源代码如下:
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。
为什么呢?