Sign in Join
FPDoc Onlineexperiment

TControl.DoMouseWheel function

Member of TControlprotectedIn unit Controls

Signals the OnMouseWheel handlers, when the mouse wheel has been turned.

Declaration

pascal
function DoMouseWheel(Shift: TShiftState; WheelDelta: Integer; 
 MousePos: TPoint): Boolean; virtual

Description

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].

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.