MouseEvent.ButtonID Property | |
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.21
Syntax VIRTUAL PROPERTY ButtonID AS LONG GET
public virtual int ButtonID { get; }
Request Example
View SourceProperty Value
Type:
LongOne 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:
Constant | Description |
---|
BUTTONCONTROL | The Control key on the keyboard was being used. |
BUTTONLEFT | The left mouse button was being used. |
BUTTONMIDDLE | The middle mouse button was being used. |
BUTTONRIGHT | The right mouse button was being used. |
BUTTONSHIFT | The Shift key on the keyboard was being pressed. |
BUTTONX1 | The ButtonX1 on a five button mouse was being used. |
BUTTONX2 | The 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