BCB中派生VCL类及动态地创建控件

BCB中派生VCL类及动态地创建控件,第1张

BCB中派生VCL类及动态地创建控件,第2张

以下不完整的示例是生成tmemo的派生类和动态创建vcl控件。

类tmemoex:public TM emo
{


}
extern tmemoex memo ex;

class t form 1:class t form
{
public:
tmemoex * memo ex;


}

void _ fast call t form 1::form show(to object * sender)
{
memo ex = new tmemoex(this);
memo ex-> parent = this;


}
总之遵循以下步骤:
类定义;
extern tmemoex memo ex;
tmemoex * memo ex;
memo ex = new tmemoex(this);
memo ex-> parent = this;

位律师回复
DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
白度搜_经验知识百科全书 » BCB中派生VCL类及动态地创建控件

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情