Difference between revisions of "Category:Events"

From Inspired-Lua Wiki
Jump to navigation Jump to search
Line 1: Line 1:
Events category.
+
Events category.  
  
Sorted alphabetically :
+
<br>
 
+
*'''[[:Category:on.paint|on.paint]]''' is called when the GUI is painted. 'gc' is the Graphics Context (see above)
*'''[[:Category:on.activate|on.activate]]'''
+
*'''[[:Category:on.resize|on.resize]]''' is called when the window is rezised
*'''[[:Category:on.arrowDown|on.arrowDown]]'''
+
<br>
*'''[[:Category:on.arrowKey|on.arrowKey]]'''
+
*'''[[:Category:on.timer|on.timer]]''' is called when the timer has been finished. Here an example of using timer to play an animation
*'''[[:Category:on.arrowLeft|on.arrowLeft]]'''
+
<br>
*'''[[:Category:on.arrowRight|on.arrowRight]]'''
+
*'''[[:Category:on.arrowKey|on.arrowKey]]''' is called when an '''arrow key''' from the clickPad/TouchPad is pressed (right, left, up, down)
*'''[[:Category:on.arrowUp|on.arrowUp]]'''
+
*'''[[:Category:on.arrowLeft|on.arrowLeft]]''' is called when the '''left''' arrow is pressed
*'''[[:Category:on.backspaceKey|on.backspaceKey]]'''
+
*'''[[:Category:on.arrowRight|on.arrowRight]]''' is called when the '''right''' arrow is pressed
*'''[[:Category:on.backtabKey|on.backtabKey]]'''
+
*'''[[:Category:on.arrowUp|on.arrowUp]]''' is called when the up '''arrow''' is pressed
*'''[[:Category:on.blink|on.blink]]'''
+
*'''[[:Category:on.arrowDown|on.arrowDown]]''' is called when the '''down''' arrow is pressed
*'''[[:Category:on.charIn|on.charIn]]'''
+
*'''[[:Category:on.up|on.up]]''' -- probably for the touchpad up motion
*'''[[:Category:on.clearKey|on.clearKey]]'''
+
*'''[[:Category:on.down|on.down]]''' -- probably for the touchpad down motion
*'''[[:Category:on.contextMenu|on.contextMenu]]'''
+
<br>
*'''[[:Category:on.copyEnabled|on.copyEnabled]]'''
+
*'''[[:Category:on.enterKey|on.enterKey]]''' is called when the '''enter''' key is pressed.
*'''[[:Category:on.copy|on.copy]]'''
+
*'''[[:Category:on.escapeKey|on.escapeKey]]''' is called when the '''escape''' key is pressed.
*'''[[:Category:on.create|on.create]]'''
+
*'''[[:Category:on.tabKey|on.tabKey]]''' is called when the '''tab''' key is pressed.
*'''[[:Category:on.cutEnabled|on.cutEnabled]]'''
+
*'''[[:Category:on.deleteKey|on.deleteKey]]''' is called when the '''delete''' key is pressed.
*'''[[:Category:on.cut|on.cut]]'''
+
*'''[[:Category:on.backspaceKey|on.backspaceKey]]''' is called when the '''clear''' key is pressed.
*'''[[:Category:on.deactivate|on.deactivate]]'''
+
*'''[[:Category:on.returnKey|on.returnKey]]''' is called when the '''return''' key is pressed.
*'''[[:Category:on.deleteKey|on.deleteKey]]'''
+
*'''[[:Category:on.contextMenu|on.contextMenu]]''' is called when the combo-key '''Ctrl Menu''' is pressed.
*'''[[:Category:on.destroy|on.destroy]]'''
+
*'''[[:Category:on.backtabKey|on.backtabKey]]''' is called when the combo-key '''Maj Tab''' is pressed.
*'''[[:Category:on.down|on.down]]'''
+
*'''[[:Category:on.clearKey|on.clearKey]]''' is called when the combo-key '''Ctrl Clear''' is pressed.
*'''[[:Category:on.enterKey|on.enterKey]]'''
+
*'''[[:Category:on.help|on.help]]''' is called when the combo-key '''Ctrl H''' is pressed.
*'''[[:Category:on.escapeKey|on.escapeKey]]'''
+
<br>
*'''[[:Category:on.grabDown|on.grabDown]]'''
+
*'''[[:Category:on.charIn|on.charIn]]''' is called when the Nspire detects a non arrow key being pressed.
*'''[[:Category:on.grabMove|on.grabMove]]'''
+
<br>
*'''[[:Category:on.grabUp|on.grabUp]]'''
+
*'''[[:Category:on.blink|on.blink]]''' called when the focus is lost on the page (like launching the document, changing page etc...)
*'''[[:Category:on.help|on.help]]'''
+
*'''[[:Category:on.create|on.create]]''' called when the script gets created.
*'''[[:Category:on.mouseDown|on.mouseDown]]'''
+
*'''[[:Category:on.deactivate|on.deactivate]]''' called when the focus is lost on the page (like launching the document, changing page etc...)
*'''[[:Category:on.mouseMove|on.mouseMove]]'''
+
*'''[[:Category:on.activate|on.activate]]''' called when the focus is on the page (like launching the document, changing page etc...)
*'''[[:Category:on.mouseUp|on.mouseUp]]'''
+
*'''[[:Category:on.destroy|on.destroy]]''' is called when the focus is on the page (like launching the document, changing page etc...)
*'''[[:Category:on.paint|on.paint]]'''
+
<br>
*'''[[:Category:on.pasteEnabled|on.pasteEnabled]]'''
+
*'''[[:Category:on.mouseDown|on.mouseDown]]''' is called when we press the left mouse button. X and Y are the pressed point coordinates.
*'''[[:Category:on.paste|on.paste]]'''
+
*'''[[:Category:on.mouseUp|on.mouseUp]]''' is called when we release the left mouse button.
*'''[[:Category:on.resize|on.resize]]'''
+
*'''[[:Category:on.mouseMove|on.mouseMove]]''' is called when the mouse moves
*'''[[:Category:on.returnKey|on.returnKey]]'''
+
*'''[[:Category:on.grabDown|on.grabDown]]''' (software only ?)
*'''[[:Category:on.rightMouseDown|on.rightMouseDown]]'''
+
*'''[[:Category:on.grabMove|on.grabMove]]''' (software only ?)
*'''[[:Category:on.rightMouseUp|on.rightMouseUp]]'''
+
*'''[[:Category:on.grabUp|on.grabUp]]''' (software only ?)
*'''[[:Category:on.tabKey|on.tabKey]]'''
+
*'''[[:Category:on.rightMouseDown|on.rightMouseDown]]''' (software only ?)
*'''[[:Category:on.timer|on.timer]]'''
+
*'''[[:Category:on.rightMouseUp|on.rightMouseUp]]''' (software only ?)
*'''[[:Category:on.up|on.up]]'''
+
<br>
 +
*'''[[:Category:on.cutEnabled|on.cutEnabled]]''' (software only ?)
 +
*'''[[:Category:on.copyEnabled|on.copyEnabled]]''' (software only ?)
 +
*'''[[:Category:on.pasteEnabled|on.pasteEnabled]]''' (software only ?)
 +
*'''[[:Category:on.cut|on.cut]]''' (software only ?)
 +
*'''[[:Category:on.copy|on.copy]]''' (software only ?)
 +
*'''[[:Category:on.paste|on.paste]]''' (software only ?)
 +
<br><br>

Revision as of 12:48, 22 May 2011

Events category.


  • on.paint is called when the GUI is painted. 'gc' is the Graphics Context (see above)
  • on.resize is called when the window is rezised


  • on.timer is called when the timer has been finished. Here an example of using timer to play an animation


  • on.arrowKey is called when an arrow key from the clickPad/TouchPad is pressed (right, left, up, down)
  • on.arrowLeft is called when the left arrow is pressed
  • on.arrowRight is called when the right arrow is pressed
  • on.arrowUp is called when the up arrow is pressed
  • on.arrowDown is called when the down arrow is pressed
  • on.up -- probably for the touchpad up motion
  • on.down -- probably for the touchpad down motion



  • on.charIn is called when the Nspire detects a non arrow key being pressed.


  • on.blink called when the focus is lost on the page (like launching the document, changing page etc...)
  • on.create called when the script gets created.
  • on.deactivate called when the focus is lost on the page (like launching the document, changing page etc...)
  • on.activate called when the focus is on the page (like launching the document, changing page etc...)
  • on.destroy is called when the focus is on the page (like launching the document, changing page etc...)