FMX.Types.IControl.MouseWheel
Delphi
procedure MouseWheel(Shift: TShiftState; WheelDelta: Integer; var Handled: Boolean);
C++
virtual void __fastcall MouseWheel(System::Classes::TShiftState Shift, int WheelDelta, bool &Handled) = 0 ;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | IControl |
Description
Provides a response when the mouse wheel is rotated while the cursor is over the control.
Implement MouseWheel to provide a certain behavior when the mouse wheel is rotated while the cursor is over the control.
Shift indicates which shift keys (SHIFT, CTRL, or ALT) were down when the pressed mouse button is released.
The WheelDelta parameter indicates the distance the wheel was rotated. WheelDelta is positive if the mouse was rotated upward, negative if the mouse was rotated downward.
The Handled parameter indicates whether the scroll bar was already rolled, depending on the WheelDelta value.
TControl implements this procedure as an OnMouseWheel event dispatcher.