From Xojo Documentation

Revision as of 23:46, 28 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Class (inherits from Object)

New in 2011r2

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

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


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