RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.CalcCursorPos Method

Gives the coordinates of the cursor, with respect to the origin of the control.

Pascal
function CalcCursorPos: TPoint;
C++
__fastcall TPoint CalcCursorPos();

Use CalcCursorPos to obtain the current coordinates of the mouse cursor, with respect to the origin of the control. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!