Category:Events

From Inspired-Lua Wiki
Revision as of 13:48, 22 May 2011 by Adriweb (talk | contribs)
Jump to navigation Jump to search

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...)