API:Vcl.Controls.TWinControl.ConstrainedResize
Delphi
procedure ConstrainedResize(var MinWidth, MinHeight, MaxWidth,
MaxHeight: Integer); override;
C++
virtual void __fastcall ConstrainedResize(int &MinWidth, int &MinHeight, int &MaxWidth, int &MaxHeight);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TWinControl |
Description
Notify control of resize with constraints.
Vcl.Controls.TWinControl.ConstrainedResize inherits from Vcl.Controls.TControl.ConstrainedResize. All content below this line refers to Vcl.Controls.TControl.ConstrainedResize.
Notify control of resize with constraints.
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.