Sign in Join
FPDoc Onlineexperiment

TCustomSplitter.MinSize property

Member of TCustomSplitterpublicIn unit ExtCtrls

Minimum size for either of the anchored controls on opposing sides of the splitter.

Declaration

pascal
property MinSize: Integer read FMinSize write SetMinSize default 30;

Description

MinSize indicates the smallest size allowed for either of the anchored controls on opposing sides of the splitter. MinSize is used in the MoveSplitter method to prevent adjacent controls from becoming too small when the splitter is dragged. The default value for the property is 30 (pixels).

MinSize does not accept zero (0) or negative Integer values in the property. Setting MinSize to zero (0) would allow an adjacent control to be resized until it is no longer visible - so these values are not accepted in the setter for the property. This is compatible with the TSplitter implementation in the Delphi VCL where the property is defined using an Integer type in the range 1..High(Integer).

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.