Sign in Join
FPDoc Onlineexperiment

TControl.ClientOrigin property

Member of TControlpublicIn unit Controls

Screen coordinates of the Top, Left pixel (in the client area) of the control.

Declaration

pascal
property ClientOrigin: TPoint read GetClientOrigin;

Description

Only TWinControl has a client area. For other controls, ClientOrigin is the same as ControlOrigin. Uses the corresponding property in the Parent control to get the property value, and includes the values in Left and Top to get the effective origin for the control.

An EInvalidOperation exception is raised if Parent has not been assigned when reading the value for the property.

Note that this value is the position as stored in the object, not always in sync with the widget.

Errors

Raises an EInvalidOperation exception with the message in sParentRequired if Parent has not been assigned when reading the value for the property.

See also

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