MouseEvent

From Xojo Documentation

Class (inherits from Object)


New in 2011r2

A class that contains information about which mouse button was held down in web applications.

Properties
Button fa-lock-32.png ScrollDeltaX fa-lock-32.png
Location fa-lock-32.png ScrollDeltaY fa-lock-32.png

Constants

The class constants to use are the following:

Constant Value
NoMouseButton 0
LeftMouseButton 1
OtherMouseButton 3
RightMouseButton 2

Example

To determine which button was pressed in a mouse related event in a Web Application, test the passed Details parameter against this constant. For example,

Select Case details.Button
Case details.LeftMouseButton
MsgBox("Left button")
Case details.RightMouseButton
MsgBox("Right button")
Case details.OtherMouseButton
MsgBox("Other button")
End Select

See Also

WebControl