Skip to main content

TcxCustomTrackBarProperties.Orientation Property

Specifies if the track bar layout is oriented horizontally or vertically.

Declaration

property Orientation: TcxTrackBarOrientation read; write; default tboHorizontal;

Property Value

Type Default Description
TcxTrackBarOrientation tboHorizontal

The current track bar layout orientation.

Remarks

AutoSize[1], Properties.AutoSize, Properties.Alignment, and Properties.Orientation properties allow you to configure UI element positioning and alignment for a track bar editor (a TcxCustomTrackBar descendant instance).

Use the Orientation property to switch between horizontal and vertical track bar layouts.

Available Options

tboHorizontal

Default. The track bar editor is oriented horizontally (the left-to-right or right-to-left scale direction depending on the ReverseDirection property value).

VCL Editors: A Horizontally-Oriented Track Bar Editor Example

tboVertical

The track bar editor is oriented vertically (the top-to-bottom or bottom-to-top scale direction depending on the ReverseDirection property value).

VCL Editors: A Vertically-Oriented Track Bar Editor Example

Note

The Orientation property does not affect the following keystrokes:

Page Up, Page Down, Home, End, , , , , +, and -.

Default Value

The Orientation property’s default value is tboHorizontal.

Footnotes
  1. Use the following properties for corresponding unbound and data-aware TcxCustomTrackBar descendants:

See Also