Vcl.Controls.TControl.CalcCursorPos
Delphi
function CalcCursorPos: TPoint;
C++
System::Types::TPoint __fastcall CalcCursorPos(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TControl |
Description
Gives the coordinates of the cursor, with respect to the origin of the control.
Use CalcCursorPos to obtain the current coordinates of the mouse cursor, with respect to the origin of the control.