FMX.ScrollBox.TCustomPresentedScrollBox.MouseWheel
Delphi
procedure MouseWheel(Shift: TShiftState; WheelDelta: Integer; var Handled: Boolean); override;
C++
virtual void __fastcall MouseWheel(System::Classes::TShiftState Shift, int WheelDelta, bool &Handled);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | FMX.ScrollBox.pas FMX.ScrollBox.hpp |
FMX.ScrollBox | TCustomPresentedScrollBox |
Description
OnMouseWheel event dispatcher for TCustomPresentedScrollBox.
MouseWheel accepts the following parameters:
Shift
: Specifies which keys are pressed when a mouse button is released. See TShiftState for possible values.WheelDelta
: The distance that the wheel rotates.WheelDelta
is positive if the wheel rotates upward, negative otherwise.Handled
: Indicates whether the scroll bar was already moved. If one of the scrolls bars (vertical or horizontal) was already handled or it does not exist, MouseWheel tries to apply the action on the other scroll bar (if the other scroll bar exists).
Unlike the parent method, TControl.MouseWheel, this method also handles the mouse wheel events in design-time.