OnMouseWheel

Syntax

Sub OnMouseWheel(Sender: Object; Args: IMouseWheelEventArgs);

Begin

//set of operators;

End Sub OnMouseWheel;

Parameters

Sender. Parameter that returns the component that has generated the event.

Args. 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 in the component area and does not depend on the focus in the component.

See also:

IControl