WebControl.MouseDown

From Xojo Documentation

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


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.

Example

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

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