NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Control.AddOnMouseWheel

Adds an event handler for the mouseWheel event. The mouseWheel event occurs when the user scrolls the mouse wheel up or down. The delta value in the event data indicates the amount that the mouse wheel has moved. The Microsoft standards indicate that the view should scroll by System.WinForms.SystemInformation.getMouseWheelScrollLines() when the delta value has reach win.WHEEL_DELTA. If a mouseWheel event occurs with a value less that WHEEL_DELTA, the control should either increment a stored value and wait until the total delta is an increment of WHEEL_DELTA, or scroll the view a percentage of MouseWheelScrollLines. NOTE: A press of the mouseWheel will generate a mouseDown event with the middle button pressed.

[Visual Basic]
Overridable Public Sub AddOnMouseWheel( _
   ByVal handler As MouseEventHandler _
)
[C#]
public virtual void AddOnMouseWheel(
   MouseEventHandler handler
);
[C++]
public: virtual void AddOnMouseWheel(
   MouseEventHandler* handler
);
[JScript]
public function AddOnMouseWheel(
   handler : MouseEventHandler
);

Parameters

handler
New handler to install for this event.

See Also

Control Class | Control Members | System.WinForms Namespace | RemoveOnMouseWheel