Event XbpScrollBar():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 scroll bar object 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, while the XbpScrollbar object has the input focus. The input focus is set to an XbpScrollbar object using the function SetAppFocus().

More information on the xbeM_Wheel event can be found in the documentation on XbpWindow:wheel.

Windows 95 does not support the mouse 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.