RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.GetControlExtents Method

Returns the smallest rectangle in which all the control's children fit.

Pascal
function GetControlExtents: TRect; virtual;
C++
virtual __fastcall TRect GetControlExtents();

Call GetControlExtents to determine the smallest rectangle in which all the control's children fit. Windowed controls call GetControlExtents when implementing the AutoSize property. 

 

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