本文整理自网络,侵删。
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single);begin Inc (nClicks); Label1.Text := nClicks.ToString;end;
function TForm1.GetClicks: Integer;begin Result := nClicks;end;
相关阅读 >>
Delphi 用ini记录combobox的itemindex
Delphi windows 编程[17] - 更换菜单: loadmenu、destroymenu、setmenu
更多相关阅读请进入《Delphi》频道 >>