Unit 'ExtCtrls' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomSplitter.OnCanResize

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

Declaration

Source position: extctrls.pp line 403

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

Description

OnCanResize is a TCanResizeEvent proprety 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

  

MoveSplitter moves the splitter by an amount specified in Offset.

TCustomSplitter.CheckNewSize

  

CheckNewSize ensures the new size is appropriate; returns True if successful.

TCanResizeEvent

  

TCanResizeEvent - generic event handling method for resizing using splitter.