RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomPanel.AdjustClientRect Method

Adjusts the ClientRect property for the idiosyncrasies of the window.

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

AdjustClientRect is called internally when the panel needs accurate information on where to place child controls within the client area. AdjustClientRect reduces ClientRect by the width of the inner and outer bevels so that child objects are not placed on the beveled region. 

 

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