Vcl.ToolWin.TToolDockForm.CanResize
Delphi
function CanResize(var NewWidth, NewHeight: Integer): Boolean; override;
C++
virtual bool __fastcall CanResize(int &NewWidth, int &NewHeight);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ToolWin.pas Vcl.ToolWin.hpp |
Vcl.ToolWin | TToolDockForm |
Description
Specifies whether the control can resize itself.
CanResize is called automatically when an attempt is made to resize the control, after any autosizing has occurred. The NewWidth and NewHeight parameters specify the attempted new values for the control's height and width. CanResize optionally adjusts the values of NewWidth and NewHeight, and returns true if the control can be resized to the returned values. CanResize returns false if the control can't be resized.