API:Vcl.Forms.TCustomForm.MouseWheelHandler
Delphi
procedure MouseWheelHandler(var Message: TMessage); override;
C++
DYNAMIC void __fastcall MouseWheelHandler(Winapi::Messages::TMessage &Message);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Dispatches messages received from a mouse wheel.
Vcl.Forms.TCustomForm.MouseWheelHandler inherits from Vcl.Controls.TControl.MouseWheelHandler. All content below this line refers to Vcl.Controls.TControl.MouseWheelHandler.
Dispatches messages received from a mouse wheel.
The WndProc method calls MouseWheelHandler when it receives a mouse wheel message. MouseWheelHandler checks whether the windowed control is embedded in a form, and if so, calls the form's MouseWheelHandler method. This allows the form to respond to mouse wheel messages before they are handled by individual controls. If the windowed control is not in a form, MouseWheelHandler passes the mouse wheel message to the Perform method, which generates an OnMouseWheel event, followed (if necessary) by an OnMouseWheelUp or OnMouseWheelDown event.