RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSplitter.CanResize Method

Determines how the splitter responds to mouse moves.

Pascal
function CanResize(var NewSize: Integer): Boolean; virtual; reintroduce;
C++
virtual __fastcall Boolean CanResize(int NewSize);

CanResize is called by the DoCanResize method to generate an OnCanResize event. The NewSize parameter indicates the size the associated control will have if the splitter is allowed to perform the resize. CanResize returns a boolean value that indicates whether the value specified by NewSize should be applied by redrawing the line (when ResizeStyle is rsLine) or resizing the associated control (when ResizeStyle is rsUpdate); 

Unless an OnCanResize event handler sets the value of NewSize and the return value, CanResize returns true without changing the NewSize parameter.

Note: CanResize is not called if the value of ResizeStyle is rsNone when the user presses the mouse button.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!