FMX.Forms.TCommonCustomForm.MouseWheel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure MouseWheel(Shift: TShiftState; WheelDelta: Integer; var Handled: Boolean); virtual;

C++

virtual void __fastcall MouseWheel(System::Classes::TShiftState Shift, int WheelDelta, bool &Handled);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TCommonCustomForm

Description

Executes each time you roll the mouse wheel.

MouseWheel has the following parameters:

  • Shift determines the state of the CTRL, ALT, and SHIFT keys at the moment you released the mouse button.
  • WheelDelta indicates the distance the wheel was rotated. WheelDelta is positive if the mouse was rotated upward, and negative if the mouse was rotated downward.
  • Handled specifies whether this form handles the mouse wheel, or other child controls do this.

See Also