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

TCustomPairSplitter.Position

Indicates the position for the Splitter relative to its orientation.

Declaration

Source position: pairsplitter.pas line 123

public property TCustomPairSplitter.Position : Integer
  read GetPosition
  write SetPosition;

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].

See also

TCustomPairSplitter.Sides

  

Provides access to the adjacent children resized using the Splitter.

TCustomPairSplitter.SplitterType

  

Specifies the orientation for the splitter in the component.

TCustomPairSplitter.UpdatePosition

  

Updates the value in the Position property.


Version 4.0 Generated 2025-05-03 Home