TcxCustomTrackBarProperties.ShowTicks Property
Switches the visibility of tick marks.
Declaration
property ShowTicks: Boolean read; write; default True;
Property Value
Type | Default |
---|---|
Boolean | True |
Remarks
The track bar editor is capable of displaying tick marks along the track bar. Tick marks can be represented as lines (also called ticks), text, or a combination of both. The main properties that affect the appearance and visibility of tick marks include:
ShowTicks – switches the visibility of tick marks;
Frequency – specifies the interval between neighboring tick marks;
TickMarks – specifies the location of tick marks relative to the track bar;
TickType – specifies the appearance of tick marks.
Setting the ShowTicks property to False hides the tick marks. You might want to do this if end-users get feedback about the edited value by other means than the track bar itself. For instance, the edited value can be displayed in a synchronized text editor. When hiding tick marks, you might like to set the TickMarks property to cxtmBoth, thus preventing the thumb from pointing to either side of the track bar.
The table below shows you examples of using the ShowTicks and TickMarks properties.
Values | Description | Example |
---|---|---|
ShowTicks = True TickMarks = cxtmBottomRight | Tick marks are displayed at the bottom of the track bar (or at the right, if it is vertically oriented). The track bar’s thumb points to the tick marks. | |
ShowTicks = False TickMarks = cxtmBoth | Tick marks are hidden. The track bar’s thumb doesn’t point anywhere. |
Note
You can also hide the track bar (i.e. by displaying the thumb and tick marks only) by setting the ShowTrack property to False.
The default value of the ShowTicks property is True.