MouseEvent

From Xojo Documentation

(Redirected from Realbasic.MouseEvent)

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

Sample Code

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

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

See Also

WebControl