Home > Back-end > How to get the mouse clicks in Delphi
How to get the mouse clicks in Delphi
Time:05-14
Edit1 form, for the Label1, Label2, Label3, Label4, Label5, run after random manually enter a value in the Edit1 box (for example 5), click for the later to save 5 on Label1; Again random manually enter a value in the Edit1 box (such as 32), click for the later to save 32 on Label2; Again random manually enter a value in the Edit1 box (49), for example, click for the later to save 49 on Label2; And so on, Label1 - Label5, no duplicate values are allowed in (master)
CodePudding user response:
How to access Delphi mouse clicks -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1 under the form private statement FCounter: integer; Field for count 2 in form onCreate initialization FCounter:=0; 3 in the above controls onm ouseUp count (inc (FCounter)); 4 what time want to check out counter, showmessage (inttostr (Fcounter));