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

TCustomSplitter.CheckNewSize

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

Declaration

Source position: extctrls.pp line 368

protected function TCustomSplitter.CheckNewSize(

  var NewSize: Integer

):Boolean; virtual;

Arguments

NewSize

  

New sized for the splitter.

Function result

True when NewSize is an acceptable size for the splitter.

Description

CheckNewSize signals the OnCanResize event handler (when assigned) to examine and validate the value in NewSize. The values in NewSize and Result can be updated in the event handler as needed. True indicates that the value in NewSize is acceptable.

CheckNewSize is used in the implementation of the MoveSplitter method.

See also

TCustomSplitter.OnCanResize

  

Event handler for receiving permission to resize.

TCustomSplitter.MoveSplitter

  

MoveSplitter moves the splitter by an amount specified in Offset.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.