Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomTrackBarProperties.TrackColor Property

Specifies the color of the track bar.

#Declaration

Delphi
property TrackColor: TColor read; write; default clWindow;

#Property Value

Type Default
TColor clWindow

#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
clMoneyGreen
clSkyBlue

Tip

You can use the TrackColor property to change the track bar’s color dynamically. For instance, you can handle the OnChange event to assign shades of blue to it. The minimum value can display in white and the maximum value in deep blue.

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.

See Also