Skip to main content

TdxScrollbarMode Enum

Enumerates different scrollbar modes for DevExpress controls (TcxControl and TdxVCLControl descendants).

Declaration

TdxScrollbarMode = (
    sbmDefault,
    sbmTouch,
    sbmClassic,
    sbmHybrid
);

Members

Name Description
sbmDefault

Enables the default scrollbar mode.

sbmTouch

Enables touch-friendly scrollbars that automatically hide when not in use.

sbmClassic

Enables classic scrollbars found in desktop Windows applications.

sbmHybrid

Enables hybrid scrollbars similar to those found in Universal Windows Platform (UWP) applications.

Remarks

Options include:

Value

Description

Example

sbmDefault

In this mode, the global scrollbar setting (that is, the root look & feel‘s ScrollbarMode property) determines if a control uses touch-friendly, hybrid, or classic scrollbars. If the global scrollbar mode is also sbmDefault, the cxDefaultIsTouchScrollUIModeEnabled global constant determines which type of scrollbars the control uses.

sbmTouch

Touch-friendly scrollbar mode is enabled explicitly. Scrollbar buttons never appear in this mode, and the horizontal or vertical scrollbar thumb becomes visible only if the mouse pointer hovers over a control or scrolls through its content. Scroll thumbs disappear when the mouse pointer remains stationary or a user does not scroll content for some time.

Note

This mode enables touch-friendly scrollbars for all DevExpress controls, except TcxTreeView, TcxListView, TcxShellTreeView and TcxShellListView. These controls support only Classic scrollbar mode.

sbmClassic

Classic scrollbar mode is enabled explicitly. A control displays only classic scrollbars found in desktop Windows applications. The appearance of classic scrollbars depends on the selected skin, basic look & feel style, or Windows theme.

Note

All DevExpress controls support Classic scrollbar mode.

sbmHybrid

Hybrid scrollbar mode is explicitly enabled. The appearance and behavior of scrollbar is similar to that found in Universal Windows Platform (UWP) applications running under Microsoft Windows® 10. This mode is a hybrid between classic and touch-friendly scrollbar modes. The scroll thumb behaves as in Touch-friendly mode but the scrollbar looks like a semi-transparent “classic” scrollbar with scroll buttons as long as the mouse pointer hovers over the thumb or its movement path.

Note

This mode enables hybrid scrollbars for all DevExpress controls, except for TcxImage, TdxPDFViewer, and TdxPSPreviewWindow. This enumeration value enables Touch-friendly scrollbar mode for the listed controls.

The TcxLookAndFeel.ScrollbarMode and TcxLookAndFeelController.ScrollbarMode properties reference the TdxScrollbarMode type.

See Also