Guest User

Untitled

a guest
Dec 14th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. var
  2. object_cur_pos: TPoint;
  3.  
  4. <...>
  5. procedure DataForm.FormMouseUp(Sender: TObject; Button: TMouseButton;
  6. Shift: TShiftState; X, Y: Integer);
  7. begin
  8. <...>
  9. if ExternalCursorOn and MouseTimer.Enabled then MouseTimer.Enabled:=false; // прекратить отслеживание координат
  10. <...>
  11. end;
  12.  
  13. procedure DataForm.MouseTimer(Sender: TObject);
  14. begin
  15. GetCursorPos(object_cur_pos); // считать глобальные координаты курсора
  16. end;
Add Comment
Please, Sign In to add comment