RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.ConstrainedResize Method

Generates an OnConstrainedResize event.

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

ConstrainedResize is called automatically as part of a control's resize sequence. It generates an OnConstrainedResize event, passing in the MinWidth, MinHeight, MaxWidth, and MaxHeight parameters, which can be altered by the event handler before they are applied to the attempted resize. 

 

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