Click or drag to resize

MouseEvent Properties

X#

The MouseEvent type exposes the following members.

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
See Also