[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControl.OnMouseWheel

Event handler for mouse wheel turned.

Declaration

Source position: controls.pp line 1458

protected property TControl.OnMouseWheel : TMouseWheelEvent
  read FOnMouseWheel
  write FOnMouseWheel;

Description

By default all mouse wheel actions are translated into scroll events. Write an OnMouseWheel handler to react on turns of the mouse wheel.

The OnMouseWheelUp and OnMouseWheelDown handlers are notified only, they are not suited for customization of mouse wheel events.

See also

TMouseWheelEvent

  

Type of an OnMouseWheel event handler.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.