WindowsFormsSettings.SmartMouseWheelProcessing Property

Gets or sets whether the mouse wheel scrolls the control that is currently hovered over with the mouse pointer or the control that is currently focused. This property is in effect for controls that reside within an XtraForm or RibbonForm. This is a static property.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v20.1.dll

Declaration

public static bool SmartMouseWheelProcessing { get; set; }
Public Shared Property SmartMouseWheelProcessing As Boolean

Property Value

Type Description
Boolean

true, if the mouse wheel scrolls the control that is currently hovered with the mouse pointer; false, if the focused control is scrolled with the mouse wheel, regardless of the mouse cursor position.

The default is true.

Remarks

The SmartMouseWheelProcessing property is only in effect for controls that reside within an XtraForm, RibbonForm or their descendants. For controls that reside within other forms (including the standard System.Windows.Forms.Form), the mouse wheel scroll behavior is dependent on the Windows OS setting.

On Windows 10 and newer, the SmartMouseWheelProcessing property is only in effect if the Scroll inactive windows when I hover over them (MouseWheelRouting) OS setting is disabled (see How To Disable Windows 10's Inactive Window Scrolling).

The SmartMouseWheelProcessing property does not have an effect on the mouse wheel scroll behavior for popup editors with currently closed popups. On Windows 10 and newer, the mouse wheel scroll behavior for these editors is dependent on the Scroll inactive windows when I hover over them (MouseWheelRouting) OS setting . Windows 7 does not provide such a setting.

See Also