RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.MouseWheelHandler Method

Dispatches messages received from a mouse wheel.

Pascal
procedure MouseWheelHandler(var Message: TMessage); dynamic;
C++
__fastcall MouseWheelHandler(TMessage Message);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!