Sign in Join
FPDoc Onlineexperiment

TCustomSplitter.SetSplitterPosition procedure

Member of TCustomSplitterpublicIn unit ExtCtrls

Changes the position for the splitter to the specified NewPosition.

Declaration

pascal
procedure SetSplitterPosition(NewPosition: Integer)

Arguments

NewPosition

Coordinate where the splitter is moved relative to the ResizeAnchor.

Description

SetSplitterPosition is a method used to change the position for the splitter control in program code (as opposed to a drag action). It calls the MoveSplitter method using the difference between NewPosition and the current splitter position relative to ResizeAnchor as an argument.

See also

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