Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomTrackBar Class

Serves as the base for track bar editors.

#Declaration

Delphi
TcxCustomTrackBar = class(
    TcxCustomEdit,
    IcxTrackBar,
    IcxTrackBarPostProvider
)

#Remarks

Track bar editors allow end-users to edit values using a thumb. The edit value can be changed using any of the following methods:

  • Dragging the thumb with the mouse;

  • Clicking the track bar at the required position;

  • Clicking the change buttons;

  • Pressing the arrow keys, or the Page Up, Page Down, Home, or End key when the track bar editor is focused. Pressing any of these keys while holding down the Shift key adjusts the current selection.

Track bars can also display a scale showing the range of edit values, marking each possible thumb position by a number and/or line.

The TcxCustomTrackBar class implements the essential functionality required by track bar editors. The derived TcxTrackBar and TcxDBTrackBar controls simply publish the inherited properties and events. Do not create instances of the TcxCustomTrackBar class to add a track bar to forms. Use its descendants instead. The TcxCustomTrackBar class can be used as the base class if you need to create custom track bar editors.

The TdxCustomZoomTrackBar class, which also inherits from the TcxCustomTrackBar class, extends its ancestor with members that are specific to zoom track bars.

#Implements

See Also