Vcl.Controls.TControl.GetClientOrigin

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetClientOrigin: TPoint; virtual;

C++

virtual System::Types::TPoint __fastcall GetClientOrigin();

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Returns the screen coordinates of the upper-left corner of the control's client area.

Override GetClientOrigin to change how the ClientOrigin is calculated.

The GetClientOrigin method is the protected method for reading the ClientOrigin property. GetClientOrigin calculates the ClientOrigin by adding the control's Left and Top values to the ClientOrigin coordinates of its parent.

See Also