RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.GetClientRect Method

Returns a rectangle defining the client area of the control.

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