RAD Studio VCL Reference
TControl.GetClientRect Method

Returns a rectangle defining the client area of the control.

function GetClientRect: TRect; virtual;
virtual __fastcall TRect GetClientRect();

Override GetClientRect to change how the client area is calculated. 

The GetClientRect method is the protected method for reading the ClientRect property. GetClientRect returns a rectangle with the rectangle's Top and Left fields set to zero, and its Bottom and Right fields set to the control's ClientHeight and ClientWidth, respectively. 


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