Syntax:
on mouse down/up/move/drag in {actor} {block} on draw {actor} {block}
Keyword handler:
linguist.graphics.keyword.GKOn.class
Runtime handler(s):
linguist.graphics.handler.GHOnMouseDown.class linguist.graphics.handler.GHOnMouseUp.class linguist.graphics.handler.GHOnMouseMove.class linguist.graphics.handler.GHOnMouseDrag.class
Function:
The first form traps one of four mouse events occurring inside a visible actor.
The second form overrides the normal drawing actions of an actor, allowing you to substitute anything else supported by the script language. See the example and draw.
Example(s):
on mouse down in Button2 go to Accept on draw Panel begin set color to color 100 233 86 draw line in Panel from 0 0 to 25 136 draw filled rectangle in Panel at 45 203 size 30 50 end