RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGroupBox.AdjustClientRect Method

Adjusts the ClientRect property for idiosyncrasies of the window.

Pascal
procedure AdjustClientRect(var Rect: TRect); override;
C++
virtual __fastcall AdjustClientRect(TRect Rect);

AdjustClientRect is called internally when the group box needs accurate information on where to place child controls within the client area. It indents the client rectangle slightly so that child controls are not placed on the frame (or caption) of the group box. 

 

ClientRect 

Caption

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!