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

TControl.ClientOrigin

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

Declaration

Source position: controls.pp line 1805

public property TControl.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

TControl.Parent

  

The control within which the control is shown.

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.ControlOrigin

  

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

TControl.GetClientOrigin

  

Gets the value for the ClientOrigin property.


Version 3.2 Generated 2024-02-25 Home