MOUSEON

Synopsis
MOUSEON leftbuttondown leftbuttonup rightbuttondown rightbuttonup move
Description

Starts trapping mouse events that are sent to the "FMSLogo" window and passes them to leftbuttondown, leftbuttonup, rightbuttondown, rightbuttonup, or move, depending on the type of event. The callbacks may either be a word that is the name of a procedure to call, or a list of instructions to run. All "callbacks" for the mouse are automatically run in NOYIELD mode.

To obtain where the mouse was when a button was pushed or the mouse moved call MOUSEPOS in your button or move procedure.

Example
PENUP
MOUSEON [SETPOS MOUSEPOS PENDOWN] [PENUP] [] [] [SETPOS MOUSEPOS]

Move the mouse around.
Hold down the left button to draw.

MOUSEOFF
See Also
MOUSEOFF

SourceForge.net Logo