RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolDockForm.CanResize Method

Specifies whether the control can resize itself.

Pascal
function CanResize(var NewWidth: Integer; var NewHeight: Integer): Boolean; override;
C++
virtual __fastcall Boolean CanResize(int NewWidth, int NewHeight);

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. 

 

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