Vcl.Controls.TMouseWheelEvent
Delphi
TMouseWheelEvent = procedure(Sender: TObject; Shift: TShiftState;
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean) of object;
C++
typedef void __fastcall (__closure *TMouseWheelEvent)(System::TObject* Sender, System::Classes::TShiftState Shift, int WheelDelta, const System::Types::TPoint &MousePos, bool &Handled);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | Vcl.Controls |
Description
TMouseWheelEvent is the function type for an OnMouseWheel event.
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. |