Skip to main content

TcxCustomTrackBarProperties.TickMarks Property

Specifies the position of tick marks and the appearance of the track bar’s thumb.

Declaration

property TickMarks: TcxTrackBarTickMarks read; write; default cxtmBottomRight;

Property Value

Type Default
TcxTrackBarTickMarks cxtmBottomRight

Remarks

Use this property to specify whether tick marks must be painted on a single or both sides of the track bar. Note that this affects the appearance of the track bar’s thumb. If tick marks are located at a single side of the track bar, the thumb points to them. When tick marks are painted at both sides, the thumb doesn’t point to either side.

The table below shows how changing the TickMarks property value affects the control when the track bar is oriented horizontally or vertically.

Value

Meaning

Example

(horizontal orientation)

Example

(vertical orientation)

cxtmBottomRight

If the track bar is horizontally oriented, tick marks are located at the bottom. Otherwise they are located to the right of the track bar. The track bar’s thumb points to tick marks.

cxtmTopLeft

If the track bar is horizontally oriented, tick marks are located at the top. Otherwise they are located to the left of the track bar. The track bar’s thumb points to tick marks.

cxtmBoth

The tick marks are located at both sides of the track bar. The track bar’s thumb doesn’t point anywhere.

You can hide tick marks by setting the ShowTicks property to False. In this case, you might like to set the TickMarks property to cxtmBoth so that the track bar’s thumb doesn’t point anywhere.

The default value of the TickMarks property is cxtmBottomRight.

See Also