Click or drag to resize

MouseEvent.ButtonID Property

X#
One of the following constants indicating the mouse button the user pressed when a MouseEvent was generated:

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL PROPERTY ButtonID AS LONG GET 
Request Example View Source

Property Value

Type: Long
One of the following constants indicating the mouse button the user pressed when a MouseEvent was generated:
Remarks
One of the following constants indicating the mouse button the user pressed when a MouseEvent was generated:
ConstantDescription
BUTTONCONTROLThe Control key on the keyboard was being used.
BUTTONLEFTThe left mouse button was being used.
BUTTONMIDDLEThe middle mouse button was being used.
BUTTONRIGHTThe right mouse button was being used.
BUTTONSHIFTThe Shift key on the keyboard was being pressed.
BUTTONX1The ButtonX1 on a five button mouse was being used.
BUTTONX2The ButtonX2 on a five button mouse was being used.
The MouseEvent:ButtonID access method does not work in Window:MouseDrag() event handlers if the user presses more than one mouse button simultaneously. To handle with multiple buttons, invoke the methods of MouseEvent (like IsLeftButton() and IsRightButton()), which report on individual buttons.
See Also