Show: Delphi C++
Display Preferences

Vcl.Controls.TControl.OnMouseWheel

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance