RAD Studio VCL Reference
TControl.GetClientOrigin Method

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

function GetClientOrigin: TPoint; virtual;
virtual __fastcall TPoint GetClientOrigin();

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!