Skip to main content

TcxCustomTrackBarProperties.Frequency Property

Specifies the distance between tick marks.

Declaration

property Frequency: Integer read; write; default 1;

Property Value

Type Default
Integer 1

Remarks

Use the Frequency property to set the offset between neighboring tick marks. This property value specifies the amount by which the Position property must be changed so that the track bar’s thumb moves to the next or previous tick mark. Note that tick marks are only displayed if the ShowTicks property value is True.

When you alter the offset between neighboring tick marks, the number of tick marks displayed also changes. The table below shows screenshots of the same track bar editor when the Frequency property is set to 2, 3 and 5.

Value Effect
2
3
5

The Frequency property can be used for two reasons:

  • When the range of edited values is too large for all tick marks to fit within the track bar. Increase the Frequency to decrease the number of tick marks in this case.

  • To restrict end-users to set specific values only.

The default value of the Frequency property is 1.

See Also