Show: Delphi C++
Display Preferences

Vcl.Controls.TControl.ClientOrigin

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ClientOrigin: TPoint read GetClientOrigin;

C++

__property System::Types::TPoint ClientOrigin = {read=GetClientOrigin};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Specifies the screen coordinates (in pixels) of the upper-left corner of a control's client area.

Read ClientOrigin to locate the upper-left corner of the control's client area. ClientOrigin returns X and Y coordinates as a TPoint type, where X specifies the horizontal coordinate of the point and Y specifies the vertical coordinate.

The screen coordinates of a control that is descended from TControl and not TWinControl are the screen coordinates of the control's parent added to its Left and Top properties. If the control doesn't have a parent, an EInvalidOperation exception is raised when ClientOrigin is read.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance