RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.ConstrainedResize Method

Notify control of resize with constraints.

Pascal
procedure ConstrainedResize(var MinWidth: Integer; var MinHeight: Integer; var MaxWidth: Integer; var MaxHeight: Integer); virtual;
C++
virtual __fastcall ConstrainedResize(int MinWidth, int MinHeight, int MaxWidth, int MaxHeight);

ConstrainedResize is called automatically when a control is resized and has nonzero Constraints. This allows the control to modify the constraints before they are applied. 

As implemented in TControl, ConstrainedResize simply calls the OnConstrainedResize event handler. 

 

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