TcxCustomTrackBarProperties.SelectionStart Property
Specifies the position where the selection bar starts.
Declaration
property SelectionStart: Integer read; write; default 0;
Property Value
Type | Default |
---|---|
Integer | 0 |
Remarks
If the track is displayed within the track bar editor (the ShowTrack property value is True), you can display a selection bar within it. The range occupied by the selection bar is specified by the SelectionStart and SelectionEnd property values. The image below shows an example of displaying the selection bar. It also illustrates the relation between the Min, Max, SelectionStart, and SelectionEnd properties.
The selection bar is displayed only when the following conditions are met:
The SelectionStart property value is less than the SelectionEnd property value. This means that you can hide the selection bar by setting these properties to the same value;
The SelectionStart property value is less than the Max property value;
The SelectionEnd property value is greater than the Min property value.
If the SelectionStart property value equals the Min property value and SelectionEnd equals Max, the selection bar occupies the entire track. End-users can adjust the selection by moving the thumb, using the keyboard while holding down the Shift key. Use the SelectionColor property to customize the color of the selection bar.
The default value of the SelectionStart property is 0.