Event XbpWindow():wheel Foundation

Mouse wheel is activated.

:wheel := {| aPos, aWheel, self | ... }
:wheel( <aPos>, <aWheel> ) --> self
xbeM_Wheel (1048599)
<aPos> is an array containing two elements { nX, nY } that specify the current position of the mouse pointer. By default, the coordinates are relative to the lower left corner of the Xbase Part receiving the message.
<aWheel> is an array with two elements { nKeyMask, nDistance }. The first element is a numeric value indicating special keys pressed while the user rotates the mouse wheel. The second element indicates the distance the wheel is rotated, expressed in multiples or divisions of 120. The value is positive when the wheel is rotated up and negative when it is rotated down.
The value of the first element is either 0 (no special key is pressed) or the result of one or more of the following #define constants listed in XBP.CH.
Constants for key states
Constant Description
XBP_MK_LBUTTON Left mouse button is pressed
XBP_MK_MBUTTON Middle mouse button is pressed
XBP_MK_RBUTTON Right mouse button is pressed
XBP_MK_CONTROL Ctrl key is pressed
XBP_MK_SHIFT Shift key is pressed

This method returns the object executing the method (self).


The xbeM_Wheel event is generated when the user rotates the mouse wheel. This event is always sent to the Xbase Part that has input focus, no matter whether or not the mouse pointer is located within or outside the area of the Xbase Part. All classes derived from XbpWindow that display data which can be vertically scrolled have a default behavior to process this event. This applies to the following classes:

Classes with default behavior for xbeM_Wheel
XbpScrollbar *)
  1. Also see XbpScrollbar:wheel


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.