RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.MouseWheelHandler Method

Directs mouse wheel messages to the appropriate control.

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

MouseWheelHandler is called automatically when the form or any windowed control contained in the form receives a message from a mouse wheel. The Message parameter encapsulates the message. 

As implemented in TCustomForm, MouseWheelHandler performs no special processing, but simply redirects the message to the active control by calling its Perform method. By default, the Perform method generates the appropriate mouse wheel events. 

 

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