User Guide

556
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
rightMouseDown (system property)
Syntax
the rightMouseDown
Description
System property; indicates whether the right mouse button (Windows) or the mouse button and
Control key (Macintosh) are being pressed (
TRUE) or not (FALSE).
On the Macintosh,
rightMouseDown is TRUE only if the emulateMultiButtonMouse property is TRUE.
Example
This statement checks whether the right mouse button in Windows is being pressed and plays the
sound Oops in sound channel 2 if it is:
if the rightMouseDown then puppetSound 2, "Oops"
See also
emulateMultiButtonMouse
on rightMouseUp (event handler)
Syntax
on rightMouseUp
statement(s)
end
Description
System message and event handler; in Windows, specifies statements that run when the right
mouse button is released. On Macintosh computers, the statements run if the mouse button is
released while the Control key is pressed 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 Help window when the user releases the right mouse button in Windows:
on rightMouseUp
window("Help").open()
end