RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.TMouseWheelEvent Type

TMouseWheelEvent is the function type for an OnMouseWheel event.

Pascal
TMouseWheelEvent = procedure (Sender: TObject; Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean) of object;
C++
(Sender: TObject; Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean) ( TMouseWheelEvent)();

TMouseWheelEvent has the following parameters:

Parameter 
Meaning 
Sender  
The control that generated the event.  
Shift  
The shift state during the rotation of the mouse wheel.  
WheelDelta  
The amount by which the mouse wheel is rotated.  
MousePos  
The current mouse coordinates.  
Handled  
Specifies whether the event is handled in the user code.  

 

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