TcxCustomTrackBarProperties.TrackColor Property
Specifies the color of the track bar.
#Declaration
property TrackColor: TColor read; write; default clWindow;
#Property Value
Type | Default |
---|---|
TColor | cl |
#Remarks
The track bar is displayed if the ShowTrack property is set to True. Its color can be changed using the TrackColor property. Note that this property is in effect only if the editor doesn’t use native paint styles or skins. You can control if the editor is painted with native paint styles or skins using the Style.LookAndFeel.NativeStyle and Style.LookAndFeel.SkinName properties.
The table below shows examples of setting the TrackColor property to different values.
Value | Example |
---|---|
cl |
![]() |
cl |
![]() |
Tip
You can use the Track
You can also customize the color of the track bar’s thumb in normal and hot-tracked states and the color of ticks. For this, use the ThumbColor, ThumbHighlightColor, and TickColor properties, respectively.
The default value of the TrackColor property is clWindow.