Skip to main content

TdxScrollMode Enum

Enumerates scroll modes in DevExpress controls (TcxControl and TdxVCLControl descendant instances).

Declaration

TdxScrollMode = (
    scmDefault,
    scmClassic,
    scmSmooth
);

Members

Name
scmDefault
scmClassic
scmSmooth

Remarks

Options include:

Value

Description

Example

scmDefault

The global scroll mode setting (that is, the root look & feel‘s ScrollMode property) determines if a control enables classic or smooth scroll mode by default. If the global scroll mode is also scmDefault, the cxDefaultLookAndFeelScrollMode global constant determines the active scroll mode for the control.

scmClassic

A control always scrolls its content discretely (by whole text lines, rows, or columns, for instance). The content position updates immediately, without a scroll animation.

scmSmooth

A control plays a scroll animation when an end user:

  • Clicks above or below the scroll thumb, except for scroll buttons.

  • Rotates the mouse wheel.

  • Uses keyboard to move focus between distant content items.

A click on the scroll thumb while the control plays the scroll animation stops scrolling immediately. You can use the dxScrollAnimationTime global constant to adjust the scroll animation speed.

Note

If the control supports per-pixel scroll mode, this value enables it at the default scroll settings.

The TcxLookAndFeel.ScrollMode and TcxLookAndFeelController.ScrollMode properties reference the TdxScrollMode type.

See Also