From RAD Studio API Documentation
Jump to: navigation, search


function CanResize(var NewSize: Integer): Boolean; reintroduce; virtual;


HIDESBASE virtual bool __fastcall CanResize(int &NewSize);


Type Visibility Source Unit Parent
function protected
Vcl.ExtCtrls TSplitter


Determines how the splitter responds to mouse moves.

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.

See Also