Skip to main content

TcxCustomTrackBarProperties.TickType Property

Specifies the appearance of tick marks.

Declaration

property TickType: TcxTrackBarTickType read; write; default tbttTicks;

Property Value

Type Default
TcxTrackBarTickType tbttTicks

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 – specifies 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.

Available TickType property values are listed and illustrated in the table below.

Value

Meaning

Example

tbttTicks

All tick marks are displayed as lines (ticks).

tbttNumbers

All tick marks are represented as text labels displaying corresponding tick values. A tick value is the value that the Position property will return if the thumb points to this tick mark.

tbttValueNumber

Tick marks that correspond to the following values display these values as text labels:

  • The track bar’s minimum and maximum values;

  • The track bar’s thumb position if it exactly matches a tick mark.

Other tick marks are displayed as ticks.

tbttTicksAndNumbers

Combines the tbttTicks and tbttNumbers options – all tick marks are displayed as ticks with text labels.

Use the TickColor property to customize the color of ticks. To customize the text color of tick labels, use the font settings of the track bar’s Style~ option sets.

You can handle the OnGetTickLabel event to customize the visibility and content of individual text labels within tick marks.

The default value of the TickType property is tbttTicks.

See Also