From Xojo Documentation


WebControl.MouseDown(X as Integer, Y as Integer, Details as Realbasic.MouseEvent)

New in 2011r2

Supported for all project types and targets.

A mouse button was pressed at the point (pixels) passed in X and Y (local to the control). Details contains information about which button was pressed.


To determine which mouse button was pressed, use a Select statement such as the following:

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