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.

VCL Shared Libraries: The Default Scroll Moe

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.

VCL Shared Libraries: The Classic Scroll Mode

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.

VCL Shared Libraries: The Smooth Scroll Mode

Direct TdxScrollMode Type References

The following properties reference the TdxScrollMode type:

TcxLookAndFeel.ScrollMode
Specifies the active scroll mode at the level of an individual control.
TcxLookAndFeelController.ScrollMode
Specifies the default scroll mode for all DevExpress controls in an application.
See Also