[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Controls' (#lcl)

# TControl.ControlOrigin

The top, left pixel for the control in screen coordinates.

## Declaration

Source position: controls.pp line 1802

`public property TControl.ControlOrigin : TPoint read GetControlOrigin;`

## Description

ControlOrigin is a read-only TPoint property with the screen-relative coordinates where the control is located.

The X and Y members in the property represent the Left and Top coordinates for the control after they are converted to screen coordinates. The values are derived by adding the TPoint values for the Left and Top coordinates to the ClientOrigin property for the Parent control. The return value contains the unmodified values in Left and Top when a Parent control has not been assigned.

ControlOrigin is used to implement the ScreenToControl and ControlToScreen methods.

## See also

TControl.Left |  | The client coordinate with the left edge for the control.
TControl.Top |  | The client coordinate for the top edge of the control.
TControl.Parent |  | The control within which the control is shown.
TControl.ClientOrigin |  | Screen coordinates of the Top, Left pixel (in the client area) of the control.
TControl.ControlToScreen |  | Converts control-relative coordinates to absolute screen coordinates.
TControl.ScreenToControl |  | Converts absolute screen coordinates to control-relative coordinates.
TControl.ScreenToClient |  | Converts absolute screen coordinates into client-relative coordinates.
TControl.BoundsRect |  | The Top, Left and Bottom, Right for the control, in client coordinates.