本文整理自网络,侵删。
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 randomfrom 随机返回字符串数组avalues中的一个元素
学习使用Delphi for android 调用java类库
Delphi 自动把combobox控件的内容里没有的内容加入列表中
更多相关阅读请进入《Delphi》频道 >>