Aug 1, 2004 #1 mattias1975 Programmer Joined Jul 26, 2004 Messages 36 Location SE How do i get the possition of the mouse arrow in borland c++?
Aug 1, 2004 #2 LastCyborg Programmer Joined Feb 7, 2003 Messages 256 Location MX You can get the cursor position by reading the params from the OnMouseMove event handler of the form. like this: Code: void __fastcall TForm1::FormMouseMove(TObject *Sender, TShiftState Shift, int X, int Y) { Label1->Caption = X; Label2->Caption = Y; } --- LastCyborg --- Upvote 0 Downvote
You can get the cursor position by reading the params from the OnMouseMove event handler of the form. like this: Code: void __fastcall TForm1::FormMouseMove(TObject *Sender, TShiftState Shift, int X, int Y) { Label1->Caption = X; Label2->Caption = Y; } --- LastCyborg ---