procedure TForm1.Button1Click(Sender: TObject);
var
button1: TButton;
begin
button1 := TButton.Create(self);
with button1 do
begin
parent := form1;
left := 40;
top := 15;
width := 100;
height := 20;
caption := 'hello';
OnClick := ButtonClick;
end;
end;
var
button1: TButton;
begin
button1 := TButton.Create(self);
with button1 do
begin
parent := form1;
left := 40;
top := 15;
width := 100;
height := 20;
caption := 'hello';
OnClick := ButtonClick;
end;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货