Sign in Join
FPDoc Onlineexperiment

TControl.ControlToScreen function

Member of TControlpublicIn unit Controls

Converts control-relative coordinates to absolute screen coordinates.

Declaration

pascal
function ControlToScreen(const APoint: TPoint): TPoint

Arguments

APoint

TPoint instance with the control-relative coordinates converted in the method.

Function result

TPoint instance with the Screen coordinates for the specified control coordinates.

Description

Screen coordinates in the return value are determined by adding the values in APoint and the ClientOrigin for the control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.