Show contents 

Forms > Forms Assembly Interfaces > IControl > IControl.OnMouseWheel

OnMouseWheel

Syntax

OnMouseWheel(Sender: Object; Args: IMouseWheelEventArgs);

Parameters

Sender. The parameter that returns the component that generated the event.

Args. The parameter that enables the user to determine event parameters.

Description

The OnMouseWheel event occurs on scrolling the mouse if the component is focused.

Comments

The events connected with mouse cursor occur in the following order:

  1. OnMouseEnter

  2. OnMouseMove

  3. OnMouseHover / OnMouseDown / OnMouseWheel

  4. OnMouseUp

  5. OnMouseLeave

NOTE. In Windows 10 the OnMouseWheel event occurs on scrolling the mouse wheel in the component area and does not depend on the focus in the component.

See also:

IControl