MouseEvent
From Xojo Documentation
Class (inherits from Object)
This class is only available for Web applications. |
New in 2011r2
A class that contains information about which mouse button was held down in web applications.
Properties | ||||
|
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
Case details.LeftMouseButton
MessageBox("Left button")
Case details.RightMouseButton
MessageBox("Right button")
Case details.OtherMouseButton
MessageBox("Other button")
End Select