TcxCustomTrackBarProperties.SelectionColor Property
Specifies the color of the selection bar.
Declaration
property SelectionColor: TColor read; write; default clHighlight;
Property Value
Type | Default |
---|---|
TColor | clHighlight |
Remarks
Track bar editors enable you to display a selection bar within the track bar (or track for short). The portion of the track occupied by the selection bar is specified by:
The SelectionStart and SelectionEnd property values provided by track bar editors (TcxTrackBar and TcxDBTrackBar) and zoom track bar editors (TdxZoomTrackBar and TdxDBZoomTrackBar);
The editor’s Range.Min and Range.Max property values provided by range track bar editors (TdxRangeTrackBar and TdxDBRangeTrackBar).
Use the SelectionColor property to specify the color of the selection bar. The image below shows the appearance of the track bar when this property is set to clNavy and clMoneyGreen.
The track can be hidden by setting the ShowTrack property to False, which will also hide the selection bar. In range track bar editors, you can switch the visibility of the selection bar using the editor’s Properties.ShowSelection property.
The default value of the SelectionColor property is clHighlight.