on.construction

From Inspired-Lua Wiki
Revision as of 15:28, 17 December 2013 by Adriweb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is called at the very beginning of a script, where you can initialize your variables etc., for example.

This has been introduced in TI-Nspire OS 3.2 (Changes).


Note : the Nspire-specific Lua API is not yet ready when this event is fired. Thus, you cannot retrieve the window's width etc., for instance (it would return 0).
In order to initalize things "one-time" that require the Nspire API, you would have to do that within on.resize with an inited flag, for example.