Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TControl.ClientOrigin

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

Declaration

Source position: controls.pp line 1730

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 of the control in screen coordinates.

TControl.GetClientOrigin

  

Gets the value for the ClientOrigin property.



CT Web help

CodeTyphon Studio