5 52free Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-24 #2 重载 constructor Create(AOwner: TComponent); override; 然后在构这个构造函数中动态加载控件 但不要忘了inherited;
Y yicanqin Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-24 #3 构造函数是这样的吗,程序出错了? constructor TgcgkFrame.Create(AOwner: TComponent); begin myEdit := Tedit.Create(self); myEdit.Parent := myFrame; end;
构造函数是这样的吗,程序出错了? constructor TgcgkFrame.Create(AOwner: TComponent); begin myEdit := Tedit.Create(self); myEdit.Parent := myFrame; end;
Y yicanqin Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-24 #4 我找了一下constructor的帮助,知道了,谢谢!!! 接分!!!
Y yicanqin Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-24 #5 to 52Free: 顺便说一下,override是覆盖的意思,它与重载的含义有所不同。