Sign in Join
FPDoc Onlineexperiment

TPairSplitter.Position property

Member of TPairSplitterpublishedIn unit PairSplitter

Indicates the position for the Splitter relative to its orientation.

Declaration

pascal
property Position:;

Description

Position is an Integer property that indicates the position for the splitter relative to its orientation. Reading the value in splitter causes the UpdatePosition method to be called to recalculate the current position for the Splitter. Position can be set at design-time, or changed at run-time by dragging the grab bar for the splitter. The value in Position affects the sizing of the adjacent child controls in Sides.

When SplitterType contains pstHorizontal, the value in Position is used as the Width for the child control in Sides[0]. The remaining Width in the component (less the 5 pixels used for the Splitter) is set as the Width for the child control in Sides[1].

When SplitterType contains pstVertical, the value in Position is used as the Height for the child control in Sides[0]. The remaining Height in the component (less the 5 pixels used for the Splitter) is set as the Height for the child control in Sides[1].

This description is the one of PairSplitter.TCustomPairSplitter.Position.

See also

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