Line 4: |
Line 4: |
| You can see how events are managed inside the Lua implementation [[Life Cycle|here]]. | | You can see how events are managed inside the Lua implementation [[Life Cycle|here]]. |
| | | |
− | *'''[[on.paint]]''' is called when the GUI is painted. [[:Category:gc|'gc' is the Graphics Context]] | + | *'''[[on.paint]]'''(gc) is called when the GUI is painted. [[:Category:gc|'gc' is the Graphics Context]] |
| *'''[[on.resize]]''' is called when the window is rezised | | *'''[[on.resize]]''' is called when the window is rezised |
| | | |
− | <br> | + | <br/> |
| | | |
| *'''[[on.timer]]''' is called at each timer ticks. See [[:Category:timer|timer]]. | | *'''[[on.timer]]''' is called at each timer ticks. See [[:Category:timer|timer]]. |
Line 38: |
Line 38: |
| <br> | | <br> |
| | | |
− | *'''[[on.blink]]''' called when the focus is lost on the page (like launching the document, changing page etc...) '''Doesn't exist anymore in 3.2+.''' | + | *'''[[on.blink]]''' called when focus changes, notably when the widget is blinking when selecting an app on the screen (Ctrl-K) |
| *'''[[on.createMathBox]]''' called when there is a MathBox created. | | *'''[[on.createMathBox]]''' called when there is a MathBox created. |
| *'''[[on.create]]''' called when the script gets created. '''Deprecated in 3.2'''. See ''on.contruction''. | | *'''[[on.create]]''' called when the script gets created. '''Deprecated in 3.2'''. See ''on.contruction''. |
Line 48: |
Line 48: |
| *'''[[on.getFocus]]''' is called when the script receives user input focus. | | *'''[[on.getFocus]]''' is called when the script receives user input focus. |
| *'''[[on.loseFocus]]''' is called when the script loses user input focus. | | *'''[[on.loseFocus]]''' is called when the script loses user input focus. |
− |
| |
| | | |
| <br> | | <br> |
Line 55: |
Line 54: |
| *'''[[on.mouseUp]]''' is called when we release the left mouse button. | | *'''[[on.mouseUp]]''' is called when we release the left mouse button. |
| *'''[[on.mouseMove]]''' is called when the mouse moves | | *'''[[on.mouseMove]]''' is called when the mouse moves |
− | *'''[[on.grabDown]]''' is called when the grabbing-down motion is detected | + | *'''[[on.grabDown]]''' is called when the grabbing motion is detected (When the user presses and holds the Select key on a device, when the user presses Ctrl + Select on a device, or when the user presses the middle mouse button) |
− | *'''[[on.grabUp]]''' is called when the grabbing-up motion is detected | + | *'''[[on.grabUp]]''' is called after the grabbing action. |
| *'''[[on.grabMove]]''' is called when the cusor is moved while grabbed. '''Doesn't exist anymore in 3.2+.''' | | *'''[[on.grabMove]]''' is called when the cusor is moved while grabbed. '''Doesn't exist anymore in 3.2+.''' |
| *'''[[on.rightMouseDown]]''' is called when the user pushes the "right click" button | | *'''[[on.rightMouseDown]]''' is called when the user pushes the "right click" button |
Line 62: |
Line 61: |
| | | |
| <br> | | <br> |
| + | |
| + | *'''[[on.keyboardUp]]'''() which fires when the tablet's on-screen keyboard gets shown. |
| + | *'''[[on.keyboardDown]]'''() which fires when the tablet's on-screen keyboard gets hidden. |
| + | |
| + | <br> |
| | | |
| *'''[[on.varChange]]''' is called when a [[var.monitor|monitored variable]] gets changed. | | *'''[[on.varChange]]''' is called when a [[var.monitor|monitored variable]] gets changed. |
− |
| |
| *'''[[on.getSymbolList]]''' is called when the script app symbol list is being serialized to the clipboard. | | *'''[[on.getSymbolList]]''' is called when the script app symbol list is being serialized to the clipboard. |
− |
| |
− |
| |
| | | |
| <br> | | <br> |