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.21
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 propertyHandle
The pointer to the window where the event occurred
(Inherited from Event.)
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 propertyMessage
A dword representing the Windows API message associated with the given event.
(Inherited from Event.)
Public propertyPosition
A point, in canvas coordinates, representing the position of the mouse pointer on the window when this MouseEvent was generated.
Public propertyWindow
An object indicating the window or control in which the event occurred. This is helpful, for example, for distinguishing between similar menu events coming from the same context menu attached to different controls.
(Inherited from Event.)
Top
Fields
  NameDescription
Public fieldhWnd (Inherited from Event.)
Public fieldlParam (Inherited from Event.)
Public fieldoWindow (Inherited from Event.)
Public fielduMsg (Inherited from Event.)
Public fieldwParam (Inherited from Event.)
Top
Remarks
MouseEvent events are passed to the following event handlers of class Window: MouseButtonDown(), MouseButtonUp(), MouseButtonDoubleClick(), MouseMove(), and MouseDrag().
See Also

Reference