{
for (int i=0; i<ControlCount; i++)
{
if (IsPublishedProp(Controls[i], "OnKeyPress"))
// how do it ?
//SetPropValue(Controls[i], "OnKeyPress", ControlKeyPress);//不行
//我想应该是用SetMethodProp,但不知怎样用。
}
}
...全文
654打赏收藏
关于RTTI:如何对控件的方法赋值
#include { for (int i=0; i<ControlCount; i++) { if (IsPublishedProp(Controls[i], "OnKeyPress")) // how do it ? //SetPropValue(Controls[i], "OnKeyPress", ControlKeyPress);//不行 //我想应该是用SetMethodProp,但不知怎样用。 } }