[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ExtCtrls' (#lcl)

# TCustomSplitter.OnCanResize

Event handler signalled to determine if the splitter control can be resized / dragged / moved.

## Declaration

Source position: extctrls.pp line 428

`public property TCustomSplitter.OnCanResize : TCanResizeEvent read FOnCanResize write FOnCanResize;`

## Description

OnCanResize is a TCanResizeEvent property with the event handler signalled to determine if the splitter control can be resized. OnCanResise is signalled (when assigned) from the CheckNewSize method using the splitter control and the new size for the anchored control as arguments. The Accept argument can be updated in the event handler to indicate whether the new size is acceptable (True) or rejected (False).

## See also

TCustomSplitter.MoveSplitter |  | Moves the splitter by an amount specified in Offset.
TCustomSplitter.CheckNewSize |  | Ensures the new size is acceptable for the aligned control on the splitter.
TCanResizeEvent |  | TCanResizeEvent - generic event handling method for resizing using splitter.