RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.AdjustClientRect Method

Provides the interface that adjusts the ClientRect property for idiosyncrasies of the window.

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

AdjustClientRect is called internally when the control needs accurate information on where to place child controls within the client area. As implemented in TWinControl, AdjustClientRect does nothing. Override this method in descendants such as TTabControl where the ClientRect property is not the same as the region in which child objects can appear. 

 

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