Back Previous Next


Linguist window package - on

Syntax:

   on button {block}
   on close {window} {block}
   on mouse click/down/up/move/drag in {component} {block}
   on mouse enter/exit {component} {block}

Keyword handler:

   linguist.window.keyword.WKOn.class

Runtime handler(s):

   linguist.window.handler.WHOnAction.class
   linguist.window.handler.WHOnCloseWindow.class
   linguist.window.handler.WHOnMouseClick.class
   linguist.window.handler.WHOnMouseDown.class
   linguist.window.handler.WHOnMouseUp.class
   linguist.window.handler.WHOnMouseMove.class
   linguist.window.handler.WHOnMouseDrag.class
   linguist.window.handler.WHOnMouseEnter.class
   linguist.window.handler.WHOnMouseExit.class

Function:

Handles an event generated by a component - a window, panel, button etc. When the event is accepted a new thread is scheduled at the address provided. The compiler places a stop command at the end of the instruction or block.

Example(s):

   on OKButton go to Accept
   on close MainWindow exit
   on mouse move in MainPanel go to DoSomething


Back Previous Next