RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TScrollingWinControl.AdjustClientRect Method

Adjusts the ClientRect property to exclude the scroll bars.

Pascal
procedure AdjustClientRect(var Rect: TRect); override;
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. It indents Rect to exclude the area taken by the scroll bars, then calls the inherited AdjustClientRect method. 

 

ClientRect

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