TScrollingWinControl.ScreenToClient function
Converts the specified screen coordinates to client-relative coordinates.
Declaration
function ScreenToClient(const APoint: TPoint): TPoint; overrideArguments
APoint | TPoint instance with the screen coordinates converted in the method. |
Function result
TPoint instance with the client-relative coordinates for the specified value.
Description
ScreenToClient is an overridden method in
TScrollingWinControl.
ScreenToClient calls the inherited method to get the TPoint instance with the client coordinates used in the return value. The X and Y members in the return value are updated to reflect the current scroll offsets for the control. This gives the origin on the logical display area for the visible area on the control.
ScreenToClient is used, along with ClientToScreen, in inherited methods which respond to changes in the mouse pointer position for a control. This includes context menu display and drag-and-dock operations.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
