RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.GetClientOrigin Method

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

Pascal
function GetClientOrigin: TPoint; virtual;
C++
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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!