StyleGrid REALbasic Plugin |

# StyleGrid.MouseWheel Event

The mouse wheel has been moved.

MouseWheel(
x as Integer,
y as Integer,
deltaX as Integer,
deltaY as Integer) as Boolean

#### Parameters

x
  The x coordinate of the mouse
y
  The y coordinate of the mouse
deltaX
  The amount of movement on the horizontal mouse wheel.
deltaY
  The amount of movement on the vertical mouse wheel.

#### Returns

Boolean
  Return true to cancel internal handling, false to not cancel internal handling.

#### Remarks

The parameters X and Y are the mouse coordinates relative to the control that has received the event. The parameters DeltaX and DeltaY hold the number of scroll lines the wheel has been moved horizontally and vertically, as defined by the operating system. DeltaX is positive when the user scrolls right and negative when scrolling to the left. DeltaY is positive when the user scrolls down and negative when scrolling up. Returns a Boolean. Return True to prevent the event from propagating further.

#### See Also

StyleGrid Control