var NewButton: TButton; begin NewButton := TButton.Create(nil); With NewButton do begin Top := 60; Width := 60; Left := 50; Parent := ?????; //设定该按钮的拥有者. Caption := 'Button'; end;
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!