TcxTrackBar Class
Represents the track bar editor that is used to edit values using a thumb.
Declaration
TcxTrackBar = class(
TcxCustomTrackBar
)
Remarks
Use TcxTrackBar to put a track bar with advanced features on a form. The control displays a thumb that can be dragged by end-users in order to modify the edit value. The track bar editor can optionally display the change buttons, which allow the thumb to be moved with mouse clicks. When the control is focused, the thumb can also be moved by pressing the arrow keys, Page Up, Page Down, Home, and End keys. You can handle the Properties.OnChange event to provide response for changing the thumb’s position. The current position can be determined using the Position property.
The control is also capable of displaying tick marks along the track bar. There are a number of properties that can be used to control the visibility and appearance of these marks. They can be displayed as lines (also called ticks), text, or a combination of both. You can specify the side of the track bar where the tick marks are displayed. This also changes the appearance of the track bar’s thumb – it points to the side where the tick marks are displayed. Refer to the Properties.TickMarks, Properties.TickType, Properties.Frequency and Properties.ShowTicks property descriptions for details on customizing tick marks.
You have the following options to change the appearance of the control’s elements:
You can modify the size and style of every element of the control;
You can paint the control using look & feel options available via the Style~ option sets.
The image below shows how the TcxTrackBar control may look in your application:
In addition to track bar editors, you can use zoom track bar editors, which display two adjacent scale ranges with individual settings, providing more granular control over thumb movements.