Click or drag to resize

MouseEvent Class

X#
Provide information about the location of the mouse, as well as which mouse button was pressed, when a MouseEvent occurred.
Inheritance Hierarchy
Object
  Event
    MouseEvent

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS MouseEvent INHERIT Event
Request Example View Source

The MouseEvent type exposes the following members.

Constructors
  NameDescription
Public methodMouseEvent
Initializes a new instance of the MouseEvent class
Top
Properties
  NameDescription
Public propertyButtonID
One of the following constants indicating the mouse button the user pressed when a MouseEvent was generated:
Public propertyIsControlButton
A logical value indicating whether the user pressed the Control key when a MouseEvent was generated.
Public propertyIsLeftButton
A logical value indicating whether the user pressed the left mouse button when a MouseEvent was generated.
Public propertyIsMiddleButton
A logical value indicating whether the user pressed the middle mouse button when a MouseEvent was generated.
Public propertyIsRightButton
A logical value indicating whether the user pressed the right mouse button when a MouseEvent was generated.
Public propertyIsShiftButton
A logical value indicating whether the user pressed the Shift key when a MouseEvent was generated.
Public propertyIsXButton1
A logical value determining whether the user pressed the XButton1 causing the MouseEvent to be generated.
Public propertyIsXButton2
A logical value determining whether the user pressed the XButton2 causing the MouseEvent to be generated.
Public propertyPosition
A point, in canvas coordinates, representing the position of the mouse pointer on the window when this MouseEvent was generated.
Top
Remarks
MouseEvent events are passed to the following event handlers of class Window: MouseButtonDown(), MouseButtonUp(), MouseButtonDoubleClick(), MouseMove(), and MouseDrag().
See Also

Reference