5,388
社区成员
发帖
与我相关
我的任务
分享
implementation
{$R *.dfm}
uses
StdCtrls;
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
Btn : TButton;
begin
Btn := TButton.Create(Self); {<-- Self 在这段代表什么功能?}
Btn.Parent := Self; {<-- Parent 是什么东东和功能??}
Btn.Left := X;
Btn.Top := Y;
Btn.Width := Btn.Width + 50;
Btn.Caption := Format('Button at %d, %d', [X, Y]); {<---- %d, %d 又是什么?? 可以给实例吗??}
end;
procedure TForm1.Table1AfterDelete(DataSet: TDataSet);
begin
StatusBar1.SimpleText := Format('There are now %d records in the table', [DataSet.RecordCount]);
end;