Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the mouse possition?

Status
Not open for further replies.

mattias1975

Programmer
Jul 26, 2004
36
SE
How do i get the possition of the mouse arrow in
borland c++?
 
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 ---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top