Lingo Dictionary > O-R > on rightMouseDown (event handler) |  |

on rightMouseDown (event handler)

Syntax

    on rightMouseDown
    	statement(s)
    end

Description

System message and event handler; in Windows, specifies statements that run when the right mouse button is pressed. On Macintosh computers, the statements run when the mouse button and Control key are pressed simultaneously and the `emulateMultiButtonMouse` property is set to `TRUE`; if this property is set to `FALSE`, this event handler has no effect on the Macintosh.

Example

This handler opens the window Help when the user clicks the right mouse button in Windows:

    on rightMouseDown
    	window("Help").open()
    end