Vcl.Controls.TControl.OnMouseWheel
Delphi
property OnMouseWheel: TMouseWheelEvent read FOnMouseWheel write FOnMouseWheel;
C++
__property TMouseWheelEvent OnMouseWheel = {read=FOnMouseWheel, write=FOnMouseWheel};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TControl |
Description
Occurs when the mouse wheel is rotated.
Write code in the OnMouseWheel event handler to respond to mouse wheel messages. If there is no OnMouseWheel event handler, or if the mouse wheel message is not handled in the OnMouseWheel event handler, then an OnMouseWheelUp or OnMouseWheelDown event occurs, depending on the direction the mouse wheel was rotated.
OnMouseWheel is an event handler of type Vcl.Controls.TMouseWheelEvent.