MouseWheel Event


9.0B, PLBCMP GUI Only

 

The MouseWheel event occurs when a mouse wheel action is taken for a LISTVIEW object.

Note the following:

  1. The MouseWheel event is referenced using an event value of twenty-seven (27). The equated label in PLBEQU.INC for this event is $MOUSEWHEEL.

  2. The Event Result value gives the distance that a mouse wheel has rotated. This value is given in multiples of Windows WHEEL_DELTA units, which is 120 per WHEEL_DELTA. This value is the threshold for the action to be taken, and one such action (for example, scrolling one increment) should occur for each delta unit.

  3. The Event Modifier contains a value from the following table:

  4.  

    Value

    Key Pressed

    1

    ALT

    2

    CTRL

    4

    SHIFT

    8

    Left Mouse Button

    16

    Right Mouse Button

    32

    (not used)

    64

    Mouse Wheel rotated toward the end user

 

  1. The Event Modifier value of 64 is an indication whether the end user has rotated the mouse wheel forward or backward. If this bit is not set, the mouse wheel was rotated forward or away from the user. If this bit is set, the mouse wheel was rotated backward or toward the user.

 

 

See Also: EVENTREGISTER, Object Events, Object IO Instructions, Object Definitions

 



PL/B Language Reference MouseUp Event Move Event