[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Invokes the OnMouseWheel handlers, when the wheel has been turned.
Source position: controls.pp line 1402
protected function TControl.DoMouseWheel( |
Shift: TShiftState; |
WheelDelta: Integer; |
MousePos: TPoint |
):Boolean; virtual; |
Shift |
|
State of the modifier keys and mouse buttons. |
WheelDelta |
|
How many notches the wheel has been turned. |
MousePos |
|
The mouse coordinates |
Set Result to True if handled.
Multiple wheel handlers can be implemented. First the general OnMouseWheel handler is tried, and if it doesn't report the event handled, then OnMouseWheelUp or OnMouseWheelDown are tried.
The actual WheelDelta is available only to the OnMouseWheel handler, not to the up and down handlers [Delphi compatible].
|
Type of an OnMouseWheel event handler. |
|
|
Type of OnMouseWheelUp/Down event handlers. |
lazarus-ccr.sourceforge.net |