在C++B中创建一个动态Label是这样的:TLabel *a = new TLabel(this);
this->InsertControl(a);
a->Caption = "aaa";
a->Left = 100;
a->Top = 100;看看有没有InsertControl()方法
this->InsertControl(a);
a->Caption = "aaa";
a->Left = 100;
a->Top = 100;看看有没有InsertControl()方法
procedure TMainForm.CreateMDIChild(const Name: string);
var
Child: TMDIChild;
butt:Tbutton;
begin
{ create a new MDI child window }
Child := TMDIChild.Create(Application);
Child.Caption := Name; butt:=Tbutton.Create(nil);
butt.Parent:=Child; if FileExists(Name) then Child.Memo1.Lines.LoadFromFile(Name);
end;