<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.inspired-lua.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jimbauwens</id>
	<title>Inspired-Lua Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.inspired-lua.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jimbauwens"/>
	<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/Special:Contributions/Jimbauwens"/>
	<updated>2026-04-09T00:50:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=TI.Image&amp;diff=1121</id>
		<title>TI.Image</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=TI.Image&amp;diff=1121"/>
		<updated>2013-09-17T19:38:02Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The TI.image format is used by TI-Nspire Lua to display images. It uses a bitmap based format with no compression at all. The image data consists out of a header section and a data section. &lt;br /&gt;
&lt;br /&gt;
==The header==&lt;br /&gt;
The header consists out of 20 bytes of data arranged as presented in the following table. All fields are little endian integers.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Offset !! Width (bytes) !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| 0 || 4 || Pixel width of image&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 4 || Pixel height of image&lt;br /&gt;
|-&lt;br /&gt;
| 8 || 1 || Image alignment (0)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || 1 || Flags (0)&lt;br /&gt;
|-&lt;br /&gt;
| 10 || 2 || Padding (0)&lt;br /&gt;
|-&lt;br /&gt;
| 12 || 4 || The number of bytes between successive raster lines (generally 2*width)&lt;br /&gt;
|-&lt;br /&gt;
| 16 || 2 || The number of bits per pixel (16)&lt;br /&gt;
|-&lt;br /&gt;
| 18 || 2 || Planes per bit (1)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Image data==&lt;br /&gt;
&lt;br /&gt;
The image data immediately follows the header. Pixels are arranged in rows. Each pixel is a little endian 16-bit integer with five bits for each color red, green and blue. The top bit determines if the pixel is drawn. If its zero (0), the pixel is not drawn (alpha). If it is one (1), the pixel is drawn in the RGB color of the remaining 15 bits.&lt;br /&gt;
&lt;br /&gt;
Example, converting a RGB color:&lt;br /&gt;
&lt;br /&gt;
R=255		→ 	R = 31 (because each pixel can only have 5 bits per color)&amp;lt;br /&amp;gt;&lt;br /&gt;
G=012		→	G = 1&amp;lt;br /&amp;gt;&lt;br /&gt;
B=123		→	B = 15&amp;lt;br /&amp;gt;&lt;br /&gt;
A= 1 (alpha flag, make that the pixel is visible)&lt;br /&gt;
&lt;br /&gt;
To make things easy, we will fist convert it to binary in this form:&lt;br /&gt;
A RRRRR GGGGG BBBBB&lt;br /&gt;
With the above data:&lt;br /&gt;
1 11111 00001 01111&lt;br /&gt;
&lt;br /&gt;
But, since the data needs to be stored in little endian, it has to be in this form:&lt;br /&gt;
GGGBBBBB ARRRRRGG&lt;br /&gt;
Quite easy to fix, as we only need to swap both halves:&lt;br /&gt;
00101111 11111100&lt;br /&gt;
&lt;br /&gt;
Ok, now we have our pixel data!&lt;br /&gt;
This data can then be put inside a string using escape characters (8 bit per escape character), for example:&lt;br /&gt;
00101111 becomes “\047” and 11111100 becomes “\252”. If a escape character is ASCII UTF-8 representable, you can replace it with the equivalent char (“\122” can be replaced by “z”).&lt;br /&gt;
&lt;br /&gt;
Example implementation in a program:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
str = &amp;quot;\007\000\000\000\008\000\000\000\000\000\000\000\014\000\000\000\016\000\001\000alalalalalalalal\000\244\000\244al\000\244\000\244al\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244al\000\244\000\244\000\244\000\244\000\244alalal\000\244\000\244\000\244alalalalal\000\244alalalalalalalalalal5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
img = image.new(str)&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawImage(img,10,10)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
&lt;br /&gt;
[[User:Adriweb|Adriweb]] made  [http://www.youtube.com/watch?v=YQhrMHNkL3A a video] showing some direct  manipulations of the TI-Image, in order to understand better the format  in general. &lt;br /&gt;
&lt;br /&gt;
[[User:jimbauwens|Jim Bauwens]] made  [http://bwns.be/jim/tiviewer.html a image previewer],  [http://bwns.be/jim/sprite.html a sprite creator] and a basic  [http://bwns.be/jim/convert.py python image converter] (you need  PythonMagick to run this)&lt;br /&gt;
&lt;br /&gt;
These tools are not official and we'll update this as soon as we can / are allowed to.&lt;br /&gt;
&lt;br /&gt;
In the official Nspire Lua toolkit, TI included in their software a feature that converts an image (with a common format such as jpg, png etc.) into a TI.Image format.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://en.wikipedia.org/wiki/Highcolor&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=TI.Image&amp;diff=1120</id>
		<title>TI.Image</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=TI.Image&amp;diff=1120"/>
		<updated>2013-09-17T19:34:54Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: /* Image data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The TI.image format is used by TI-Nspire Lua to display images. It uses a bitmap based format with no compression at all. The image data consists out of a header section and a data section. &lt;br /&gt;
&lt;br /&gt;
==The header==&lt;br /&gt;
The header consists out of 20 bytes of data arranged as presented in the following table. All fields are little endian integers.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Offset !! Width (bytes) !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| 0 || 4 || Pixel width of image&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 4 || Pixel height of image&lt;br /&gt;
|-&lt;br /&gt;
| 8 || 1 || Image alignment (0)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || 1 || Flags (0)&lt;br /&gt;
|-&lt;br /&gt;
| 10 || 2 || Padding (0)&lt;br /&gt;
|-&lt;br /&gt;
| 12 || 4 || The number of bytes between successive raster lines (generally 2*width)&lt;br /&gt;
|-&lt;br /&gt;
| 16 || 2 || The number of bits per pixel (16)&lt;br /&gt;
|-&lt;br /&gt;
| 18 || 2 || Planes per bit (1)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Image data==&lt;br /&gt;
&lt;br /&gt;
The image data immediately follows the header. Pixels are arranged in rows. Each pixel is a little endian 16-bit integer with five bits for each color red, green and blue. The top bit determines if the pixel is drawn. If its zero (0), the pixel is not drawn (alpha). If it is one (1), the pixel is drawn in the RGB color of the remaining 15 bits.&lt;br /&gt;
&lt;br /&gt;
Example, converting a RGB color:&lt;br /&gt;
&lt;br /&gt;
R=255		→ 	R = 31 (because each pixel can only have 5 bits per color)&amp;lt;br /&amp;gt;&lt;br /&gt;
G=012		→	G = 1&amp;lt;br /&amp;gt;&lt;br /&gt;
B=123		→	B = 15&amp;lt;br /&amp;gt;&lt;br /&gt;
A= 1 (alpha flag, make that the pixel is visible)&lt;br /&gt;
&lt;br /&gt;
To make things easy, we will fist convert it to binary in this form:&lt;br /&gt;
A RRRRR GGGGG BBBBB&lt;br /&gt;
With the above data:&lt;br /&gt;
1 11111 00001 01111&lt;br /&gt;
&lt;br /&gt;
But, since the data needs to be stored in little endian, it has to be in this form:&lt;br /&gt;
GGGBBBBB ARRRRRGG&lt;br /&gt;
Quite easy to fix, as we only need to swap both halves:&lt;br /&gt;
00101111 11111100&lt;br /&gt;
&lt;br /&gt;
Ok, now we have our pixel data!&lt;br /&gt;
This data can then be put inside a string using escape characters (8 bit per escape character), for example:&lt;br /&gt;
00101111 becomes “\047” and 11111100 becomes “\252”. If a escape character is ASCII UTF-8 representable, you can replace it with the equivalent char (“\122” can be replaced by “z”).&lt;br /&gt;
&lt;br /&gt;
Example implementation in a program:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
str = &amp;quot;\007\000\000\000\008\000\000\000\000\000\000\000\014\000\000\000\016\000\001\000alalalalalalalal\000\244\000\244al\000\244\000\244al\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244al\000\244\000\244\000\244\000\244\000\244alalal\000\244\000\244\000\244alalalalal\000\244alalalalalalalalalal5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
img = image.new(str)&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawImage(img,10,10)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=TI.Image&amp;diff=1119</id>
		<title>TI.Image</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=TI.Image&amp;diff=1119"/>
		<updated>2013-09-17T19:33:23Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The TI.image format is used by TI-Nspire Lua to display images. It uses a bitmap based format with no compression at all. The image data consists out of a header section and a data section. &lt;br /&gt;
&lt;br /&gt;
==The header==&lt;br /&gt;
The header consists out of 20 bytes of data arranged as presented in the following table. All fields are little endian integers.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Offset !! Width (bytes) !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| 0 || 4 || Pixel width of image&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 4 || Pixel height of image&lt;br /&gt;
|-&lt;br /&gt;
| 8 || 1 || Image alignment (0)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || 1 || Flags (0)&lt;br /&gt;
|-&lt;br /&gt;
| 10 || 2 || Padding (0)&lt;br /&gt;
|-&lt;br /&gt;
| 12 || 4 || The number of bytes between successive raster lines (generally 2*width)&lt;br /&gt;
|-&lt;br /&gt;
| 16 || 2 || The number of bits per pixel (16)&lt;br /&gt;
|-&lt;br /&gt;
| 18 || 2 || Planes per bit (1)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Image data==&lt;br /&gt;
&lt;br /&gt;
The image data immediately follows the header. Pixels are arranged in rows. Each pixel is a little endian 16-bit integer with five bits for each color red, green and blue. The top bit determines if the pixel is drawn. If its zero (0), the pixel is not drawn (alpha). If it is one (1), the pixel is drawn in the RGB color of the remaining 15 bits.&lt;br /&gt;
&lt;br /&gt;
Example, converting a RGB color:&lt;br /&gt;
&lt;br /&gt;
R=255		→ 	R = 31 (because each pixel can only have 5 bits per color)&lt;br /&gt;
G=012		→	G = 1&lt;br /&gt;
B=123		→	B = 15&lt;br /&gt;
A= 1 (alpha flag, make that the pixel is visible)&lt;br /&gt;
&lt;br /&gt;
To make things easy, we will fist convert it to binary in this form:&lt;br /&gt;
A RRRRR GGGGG BBBBB&lt;br /&gt;
With the above data:&lt;br /&gt;
1 11111 00001 01111&lt;br /&gt;
&lt;br /&gt;
But, since the data needs to be stored in little endian, it has to be in this form:&lt;br /&gt;
GGGBBBBB ARRRRRGG&lt;br /&gt;
Quite easy to fix, as we only need to swap both halves:&lt;br /&gt;
00101111 11111100&lt;br /&gt;
&lt;br /&gt;
Ok, now we have our pixel data!&lt;br /&gt;
This data can then be put inside a string using escape characters (8 bit per escape character), for example:&lt;br /&gt;
00101111 becomes “\047” and 11111100 becomes “\252”. If a escape character is ASCII UTF-8 representable, you can replace it with the equivalent char (“\122” can be replaced by “z”).&lt;br /&gt;
&lt;br /&gt;
Example implementation in a program:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
str = &amp;quot;\007\000\000\000\008\000\000\000\000\000\000\000\014\000\000\000\016\000\001\000alalalalalalalal\000\244\000\244al\000\244\000\244al\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244\000\244al\000\244\000\244\000\244\000\244\000\244alalal\000\244\000\244\000\244alalalalal\000\244alalalalalalalalalal5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
img = image.new(str)&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawImage(img,10,10)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=Main_Page&amp;diff=737</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=Main_Page&amp;diff=737"/>
		<updated>2012-06-08T09:20:44Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Welcome to the Inspired-Lua Wiki''', the place to know everything about Lua programming on the TI-Nspire! &lt;br /&gt;
&lt;br /&gt;
Please note that the wiki is not finished yet. However, it is constantly-updated. &lt;br /&gt;
&lt;br /&gt;
If you wish to see an example the documentation's structure, please read a fully-documented part such as the [[:Category:image|image category]], or &amp;quot;[[gc:drawString]]&amp;quot;, from the [[:Category:gc|gc category]]. &lt;br /&gt;
&lt;br /&gt;
== Categories  ==&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;1&amp;quot; class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: 300px; height: 603px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;64&amp;quot; height=&amp;quot;64&amp;quot; | [[Image:Lua-logo.gif|64x64px|Lua-logo.gif]] &lt;br /&gt;
| [[Overview of the API|Standard Library]] &lt;br /&gt;
| The standard Lua functions&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;64&amp;quot; height=&amp;quot;64&amp;quot; | [[Image:Lua-logo.gif|64x64px|Lua-logo.gif]] &lt;br /&gt;
| [[:Category:Extended Standard Library|Extended Standard Library]] &lt;br /&gt;
| Some functions that TI added to the standard Lua library&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Timer-icon.gif|64x64px|Timer-icon.gif]] &lt;br /&gt;
| [[timer|Timer]] &lt;br /&gt;
| The integrated timer&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;br&amp;gt; &lt;br /&gt;
| [[Events|Events]] &lt;br /&gt;
| Platform Events&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[gc|Graphical context]] &lt;br /&gt;
| Draw object to the screen with gc&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[platform|Platform]] &lt;br /&gt;
| Get and manage platform information&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[image|Image]] &lt;br /&gt;
| The image library&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Rtf icon.png|64x64px|Rtf icon.png]] &lt;br /&gt;
| [[D2Editor|D2Editor]] &lt;br /&gt;
| A rich text editor&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Locale.png|64x64px|Locale.png]] &lt;br /&gt;
| [[locale|Locale]] &lt;br /&gt;
| Get Locale information&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Clipboard-Paste-icon.png|67x67px|Clipboard-Paste-icon.png]] &lt;br /&gt;
| [[clipboard|Clipboard]] &lt;br /&gt;
| Add and get text from the clipboard&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:File.png|64x64px|File.png]] &lt;br /&gt;
| [[var|Var]] &lt;br /&gt;
| Manage files in the local document&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[document|Document]] &lt;br /&gt;
| Set global document flags&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[toolpalette|Tool Palette]] &lt;br /&gt;
| An easy to manage menu&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[cursor|Cursor]]&lt;br /&gt;
| Change or hide the cursor&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=math.eval&amp;diff=634</id>
		<title>math.eval</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=math.eval&amp;diff=634"/>
		<updated>2012-03-11T15:40:37Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;math.eval&amp;lt;/span&amp;gt; is a math library extension. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The function calls the math server with the specified arguments and returns the a numerical result if possible.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
math.'''eval(expression)'''&amp;lt;br&amp;gt; evaluates &amp;quot;expression&amp;quot; (can contain Basic arguments) and returns a result as a number if possible.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Expression can contain everything a TI-Basic function can contain. You can seperate statements using &amp;quot;:&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
It can also contain calls to user defined functions in the document, or functions in global libraries.&lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;math.eval(&amp;quot;sqrt(2^3)&amp;quot;)&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=math.eval&amp;diff=633</id>
		<title>math.eval</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=math.eval&amp;diff=633"/>
		<updated>2012-03-11T15:40:14Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Created page with &amp;quot;&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;math.eval&amp;lt;/span&amp;gt; is a math library extension.   &amp;lt;br&amp;gt;   The function calls the math server with the specified arguments and returns the a numerica...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;math.eval&amp;lt;/span&amp;gt; is a math library extension. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The function calls the math server with the specified arguments and returns the a numerical result if possible.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
var.'''eval(expression)'''&amp;lt;br&amp;gt; evaluates &amp;quot;expression&amp;quot; (can contain Basic arguments) and returns a result as a number if possible.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Expression can contain everything a TI-Basic function can contain. You can seperate statements using &amp;quot;:&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
It can also contain calls to user defined functions in the document, or functions in global libraries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;math.eval(&amp;quot;sqrt(2^3)&amp;quot;)&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=cursor.hide&amp;diff=623</id>
		<title>cursor.hide</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=cursor.hide&amp;diff=623"/>
		<updated>2012-01-11T12:46:22Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;cursor.'''hide'''() is a function that is part of the [[:Category:cursor|cursor functions]].&lt;br /&gt;
&lt;br /&gt;
It hides the cursor (mouse pointer) on the screen.&amp;lt;br /&amp;gt;&lt;br /&gt;
NB : Even with TouchPad devices, the user can't have it shown again, until [[cursor.show]]() is called.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Since|3.0}}&lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
cursor.'''hide'''()&amp;lt;br /&amp;gt;&lt;br /&gt;
No arguments.&lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;if (isPlaying) then &lt;br /&gt;
   cursor.hide()&lt;br /&gt;
else&lt;br /&gt;
   cursor.show()&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
*[[cursor.show]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:cursor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=cursor.show&amp;diff=622</id>
		<title>cursor.show</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=cursor.show&amp;diff=622"/>
		<updated>2012-01-11T12:46:06Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;cursor.'''show'''() is a function that is part of the [[:Category:cursor|cursor functions]].&lt;br /&gt;
&lt;br /&gt;
It shows the cursor (mouse pointer) on the screen.&amp;lt;br /&amp;gt;&lt;br /&gt;
It is mostly used after a [[cursor.hide]].&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Since|3.0}}&lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
cursor.'''show'''()&amp;lt;br /&amp;gt;&lt;br /&gt;
No arguments.&lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;if (isPlaying) then &lt;br /&gt;
   cursor.hide()&lt;br /&gt;
else&lt;br /&gt;
   cursor.show()&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
*[[cursor.hide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:cursor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=cursor.set&amp;diff=621</id>
		<title>cursor.set</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=cursor.set&amp;diff=621"/>
		<updated>2012-01-11T12:45:37Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;cursor.'''set''' is a function that is part of the [[:Category:cursor|cursor functions]].&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It sets the shape of the mouse pointer to display.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Since|3.0}}&lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
cursor.'''set'''(cursorName) &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;u&amp;gt;&amp;lt;center&amp;gt;cursorName&amp;lt;/center&amp;gt;&amp;lt;/u&amp;gt; || string || The name of the cursor shape to use for the mouse pointer. It can be one of the following strings :&lt;br /&gt;
&amp;quot;animate&amp;quot;, &amp;quot;arrow&amp;quot;, &amp;quot;clear&amp;quot;, &amp;quot;crosshair&amp;quot;, &amp;quot;default&amp;quot;, &amp;quot;diag resize&amp;quot;, &amp;quot;dilation&amp;quot;, &amp;quot;dotted arrow&amp;quot;, &amp;quot;drag grab&amp;quot;, &amp;quot;excel plus&amp;quot;, &amp;quot;hand closed&amp;quot;, &amp;quot;hand open&amp;quot;, &amp;quot;hand pointer&amp;quot;, &amp;quot;hide&amp;quot;, &amp;quot;hollow pointer&amp;quot;, &amp;quot;interrogation&amp;quot;, &amp;quot;link select&amp;quot;, &amp;quot;mod label&amp;quot;, &amp;quot;pencil&amp;quot;, &amp;quot;pointer&amp;quot;, &amp;quot;resize column&amp;quot;, &amp;quot;resize row&amp;quot;, &amp;quot;rotation&amp;quot;, &amp;quot;show&amp;quot; &amp;quot;text&amp;quot;, &amp;quot;translation&amp;quot;, &amp;quot;unavailable&amp;quot;, &amp;quot;wait busy&amp;quot;, &amp;quot;writing&amp;quot;, &amp;quot;zoom box&amp;quot;, &amp;quot;zoom in&amp;quot;, &amp;quot;zoom out&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;if (needsCursor) then   -- needsCursor would be a variable defined earilier&lt;br /&gt;
   cursor.set(&amp;quot;pencil&amp;quot;)&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cursors ==&lt;br /&gt;
[[File:Cursors.png|400 px]]&lt;br /&gt;
&lt;br /&gt;
(this images also contains some non-available cursors, but most of them are)&lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
*[[cursor.show]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:cursor]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:cursor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=Overview_of_the_API&amp;diff=582</id>
		<title>Overview of the API</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=Overview_of_the_API&amp;diff=582"/>
		<updated>2011-11-28T10:00:12Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Note: Neither the ''io'' nor ''os'' libraries are present for the TI-Nspire, which seems to be running a light version of Lua 5.1.4. &lt;br /&gt;
&lt;br /&gt;
== Standard Library  ==&lt;br /&gt;
&lt;br /&gt;
( This has been taken from [http://www.wowwiki.com/Lua_functions a WoWWiki page] - See the full, official documentation [http://www.lua.org/manual/5.1/manual.html here] ) &lt;br /&gt;
&lt;br /&gt;
*'''[[G]]''' - Global Variable - A global variable (not a function) that holds the global environment (that is, _G._G = _G). Lua itself does not use this variable; changing its value does not affect any environment, nor vice-versa. (Use setfenv to change environments.) - taken from Lua docs &lt;br /&gt;
*'''[[assert]]'''(value[, errormsg]) - asserts a value evaluates to true. If it is, returns value, otherwise causes a Lua error to be thrown. &lt;br /&gt;
*'''[[getfenv]]'''(function or integer) - Returns the table representing the stack frame of the given function or stack level. &lt;br /&gt;
*'''[[getmetatable]]'''(obj, mtable) - Returns the metatable of the given table or userdata object. &lt;br /&gt;
*'''[[next]]'''(table, index) - Returns the next key, value pair of the table, allowing you to walk over the table. &lt;br /&gt;
*'''[[newproxy]]'''(boolean or proxy) - Creates a userdata with a sharable metatable. &lt;br /&gt;
*'''[[print]]''' - print (···) - Receives any number of arguments, and prints their values to stdout, using the tostring function to convert them to strings. print is not intended for formatted output, but only as a quick way to show a value, typically for debugging. For formatted output, use string.format. - taken from Lua Docs &lt;br /&gt;
*'''[[select]]'''(index, list) - Returns the number of items in list or the value of the item in list at index. &lt;br /&gt;
*'''[[setfenv]]'''(function or integer, table) - Sets the table representing the stack frame of the given function or stack level. &lt;br /&gt;
*'''[[setmetatable]]'''(obj, mtable) - Sets the metatable of the given table or userdata object. &lt;br /&gt;
*'''[[tostring]]''' - tostring (e) - Receives an argument of any type and converts it to a string in a reasonable format. For complete control of how numbers are converted, use string.format. If the metatable of e has a &amp;quot;__tostring&amp;quot; field, then tostring calls the corresponding value with e as argument, and uses the result of the call as its result. - taken from Lua Docs. &lt;br /&gt;
*'''[[type]]'''(var) - Returns the type of variable as a string, &amp;quot;number&amp;quot;, &amp;quot;string&amp;quot;, &amp;quot;table&amp;quot;, &amp;quot;function&amp;quot; or &amp;quot;userdata&amp;quot;. &lt;br /&gt;
*'''[[unpack]]'''(table[, start][, end]) - Returns the contents of its argument as separate values. &lt;br /&gt;
*'''[[xpcall]]'''(func, err) - Returns a boolean indicating successful execution of func and calls err on failure, additionally returning func's or err's results.&lt;br /&gt;
&lt;br /&gt;
== Concepts and Basics  ==&lt;br /&gt;
&lt;br /&gt;
This part will explain you how the Lua actually works inside the OS and help you to figure out what you're doing when you write a script for the TI-Nspire. Before reading this, you have to know all about the Lua basics. &lt;br /&gt;
&lt;br /&gt;
The Lua is an interpreted script language which means that it isn't as fast as ASM/C programs, but is still better than the TI-BASIC. One good thing is that this language is in a complete harmony with the OS with basic events and a powerfull graphic context. First, we have to understand how this works. Basicly the script is launched before the executive engine. This means that we can neither evaluate expressions nor use some of the standard API (like platform, var) until the engine is launched. Here is a call summary&amp;amp;nbsp;: &lt;br /&gt;
&lt;br /&gt;
*Launch string library &lt;br /&gt;
*Launch math library &lt;br /&gt;
*... &lt;br /&gt;
*Open and launch User's Lua script &lt;br /&gt;
*... &lt;br /&gt;
*Launch var API (store, recall, ...) &lt;br /&gt;
*Launch platform API (window, gc, ...) &lt;br /&gt;
*... &lt;br /&gt;
*Link events (pseudo code)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;while(Exit)&lt;br /&gt;
 	------- Some OS routines here&lt;br /&gt;
 &lt;br /&gt;
  	---- Begin of Event link&lt;br /&gt;
 	buffer:captureDataFromKeyPad() 	 	 	--  (N) some underground routines to catch events&lt;br /&gt;
 	if buffer.charInput ~= &amp;quot;&amp;quot; then 	 	 	--  (N)&lt;br /&gt;
 		on.charIn(buffer.charInput)&lt;br /&gt;
 		buffer.charInput= &amp;quot;&amp;quot; 	 	 	--  (N)&lt;br /&gt;
 	end&lt;br /&gt;
 	if buffer.arrowKey ~= &amp;quot;&amp;quot; then 	 	 	--  (N)&lt;br /&gt;
 		on.arrowKey(buffer.arrowKey)&lt;br /&gt;
 		buffer.arrowKey = &amp;quot;&amp;quot; 	 	 	--  (N)&lt;br /&gt;
 	end&lt;br /&gt;
 	----- etc ... 	&lt;br /&gt;
 	if platform.window.isInvalidate then &lt;br /&gt;
 	 	platform.gc():purge()	 	 	--  (N) Empty buffer before starting to draw&lt;br /&gt;
 		on.paint(platform.gc()) 	  	-- save all the things we have to draw&lt;br /&gt;
 	 	platform:paint() 	 	  	--  (N) draw all those things&lt;br /&gt;
 		platform.window.isInvalidate = false 	-- say that the window has been drawn&lt;br /&gt;
 	end&lt;br /&gt;
 	----- End of Event link&lt;br /&gt;
end''&lt;br /&gt;
Note : the (N) commented line only indicates the meaning of the routine. Those functions don't really exist.&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can understand how everything is linked, just by a main loop. This helps you to understand that you don't have to code a loop yourself, because the screen wouldn't be refreshed. This also helps to see when the screen gets refreshed. In other words, we cannot use niether '''gc''' nor '''platform.gc()''' (which are the same) in order to draw somthing on the screen if we are outside of '''on.paint()''' (except if your outside function is called within on.paint() ). This also means that we don't need to pass '''gc''' as parameter, because we can rather use '''platform.gc()''' for any functions called within on.paint(). This is exactly what [https://github.com/adriweb/BetterLuaAPI-for-TI-Nspire/blob/master/BetterLuaAPI.lua the BetterLuaAPI library for Nspire] does. &lt;br /&gt;
&lt;br /&gt;
Here is an example of a simple Lua program that displays a message only when a key is pressed (and let the screen blank otherwise). &lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt; function on.paint(gc)&lt;br /&gt;
 	if message then&lt;br /&gt;
 	 	gc:setFont(&amp;quot;sansserif&amp;quot;, &amp;quot;r&amp;quot;, 10)	-- initialize font drawing&lt;br /&gt;
 	 	gc:drawString(message, 0, 0, &amp;quot;top&amp;quot;)	-- display the message at (0, 0) coordinates&lt;br /&gt;
 	 	message = nil 				-- erase the message&lt;br /&gt;
 	 	timer.start(1) 	 	 	-- start a timer to exit on.paint() but keep in mind that we have to redraw the screen&lt;br /&gt;
 	end&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 function on.timer()&lt;br /&gt;
 	timer.stop()&lt;br /&gt;
 	platform.window:invalidate()&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 function on.charIn(ch)&lt;br /&gt;
 	message = &amp;quot;Hello World !&amp;quot;		-- store a message&lt;br /&gt;
 	platform.window:invalidate()		-- force display&lt;br /&gt;
 end&amp;lt;/source&amp;gt;&lt;br /&gt;
When you open the document, the script is read once. It initializes and overwrites all the functions and globals with the ones you defined. Thus, '''message''' is nil. Once the '''on.paint()''' event is called, '''message''' is nil, thus, nothing is done. When you press a key that calls '''on.charIn()''' (see below for more information), '''message''' is now &amp;quot;Hello World&amp;quot; and we tell the '''platform''' that the screen has to be refreshed. Then, '''on.paint()''' is called again, '''message''' is not nil then we display it, erase '''message''' and launch a timer. Why is that&amp;amp;nbsp;? Because if we call '''platform.window:invalidate()''' right there, we won't refresh the screen. Why again&amp;amp;nbsp;? Just look at the pseudo-code above. We set the window as drawn after each call of on.paint(). Thus a timer is necessary to manually recall '''on.paint()''' and exit the '''on.paint()''' function to draw the screen. When the timer is ended, '''on.timer()''' is called and we refresh the screen. The screen is then redrawn but there is nothing to draw because '''message''' is nil. Thus, the graphic context lets the screen blank. &lt;br /&gt;
&lt;br /&gt;
== gc (as in Graphics Context)  ==&lt;br /&gt;
&lt;br /&gt;
Note: You need to add “gc:” before each of these commands in order to use them. ex. '''gc:setAlpha(...)'''. You can also call gc like this&amp;amp;nbsp;: '''platform.gc():setAlpha(...)'''. Then you can use the gc library in a function where gc is not passed as an argument. but this function *has* to be called within '''on.paint(gc)''' &lt;br /&gt;
&lt;br /&gt;
The maximum screen resolution available to Lua programs is 318 by 212 pixels. &lt;br /&gt;
&lt;br /&gt;
*'''[[gc:begin]]''' - &lt;br /&gt;
*'''[[gc:clipRect]]''' - &lt;br /&gt;
*'''[[gc:drawArc]]'''(x, y, width, height, start angle, finish angle) Note, to draw a circle, use drawArc(x - diameter/2, y - diameter/2, diameter,diameter,0,360) where x and y are the coordinates of the middle. &lt;br /&gt;
*'''[[gc:drawImage]]'''(image,x,y) First argument in format “[[TI.Image]]”, x and y the coords. &lt;br /&gt;
*'''[[gc:drawLine]]'''(xstart, ystart, xend, yend) Draws a line starting at the point (xstart,ystart) and ending at the point (xend, yend) &lt;br /&gt;
*'''[[gc:drawPolyLine]]'''(int list1 [,int list2, .., int listN]) Draws a shape from a list contaning successively the x and y coordinates of each point the line have to draw.&lt;br /&gt;
&lt;br /&gt;
*'''[[gc:drawRect]]'''(x, y, xwidth, yheight) Draws a rectangle at (x,y) with the “x” side being “xwidth” long and the “y” side being “yheight” long &lt;br /&gt;
*'''[[gc:drawString]]'''(string, x, y, PositionString) PositionString is the string’s anchor point and can be “bottom”, “middle”, or “top”. &lt;br /&gt;
*'''[[gc:fillArc]]'''(x, y, width, height, start angle, finish angle) see drawArc &lt;br /&gt;
*'''[[gc:fillPolygon]]'''(int list1 [,int list2, .., int listN]) see drawPolyLine &lt;br /&gt;
*'''[[gc:fillRect]]'''(x, y, width, height) see drawRect &lt;br /&gt;
*'''[[gc:finish]]''' - &lt;br /&gt;
*'''[[gc:getStringHeight]]'''(string) &lt;br /&gt;
*'''[[gc:getStringWidth]]'''(string) &lt;br /&gt;
*'''[[gc:isColorDisplay]]''' Bool (Read-only) Returns 1 if color, 0 if not. &lt;br /&gt;
*'''[[gc:setAlpha]]'''(int) - where the argument is an int between 0 and 255. Sets the transparency. &lt;br /&gt;
*'''[[gc:setColorRGB]]'''(red, green, blue) RGB values are integers, from 0 to 255. &lt;br /&gt;
*'''[[gc:setFont]]'''(font, type, size), with font&amp;amp;nbsp;: {“sansserif”, &amp;quot;serif&amp;quot;, ..}, type {“b”, “r”, “i”}, size(int) &lt;br /&gt;
*'''[[gc:setPen]]'''(size, smooth) size {“thin”, “medium”, &amp;quot;thick&amp;quot;}, smooth {“smooth”, &amp;quot;dotted&amp;quot;, &amp;quot;dashed&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
== platform  ==&lt;br /&gt;
&lt;br /&gt;
These are mainly read-only. These work by writing &amp;quot;'''platform.'''&amp;quot; in front of them. Example&amp;amp;nbsp;: &amp;quot;'''platform.window:invalidate()'''&amp;quot; &lt;br /&gt;
&lt;br /&gt;
*'''[[platform.apilevel]]'''&amp;amp;nbsp;: Returns the version of the API. Currently (OS 3.0.1) returns 1.0.0. &lt;br /&gt;
*'''[[platform.window]]'''&lt;br /&gt;
&lt;br /&gt;
:*'''[[platform.window:width]]''' - Returns the width of the window. Ex&amp;amp;nbsp;: ''platform.window:height()'' &lt;br /&gt;
:*'''[[platform.window:height]]''' - Returns the height of the window &lt;br /&gt;
:*'''[[platform.window:invalidate]]''' - Repaints the window (it calls '''on.paint(gc)''')&lt;br /&gt;
&lt;br /&gt;
*'''[[platform.isDeviceModeRendering]]''' Returns true or false whether the unit is &amp;quot;rendering&amp;quot; or not &lt;br /&gt;
*'''[[platform.gc]]''' - Other way to call '''gc'''. Use it like that&amp;amp;nbsp;: '''platform.gc():setAlpha(...)''' for example. This is useful when you're in a function outside '''on.paint(gc)''' (but this function has to be called within [[on.paint]](gc).) &lt;br /&gt;
*'''[[platform.isColorDisplay]]''' Returns ''true'' if the unit the code is being run on has a color display (-&amp;amp;gt; Nspire CX), and ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
== cursor  ==&lt;br /&gt;
&lt;br /&gt;
*'''[[cursor.hide]]'''() - hides the cursor (mouse pointer) &lt;br /&gt;
*'''[[cursor.set]]'''(string) - string can be one of those&amp;amp;nbsp;: (interrogation, crosshair, text, pointer, link select, diag resize, wait busy, hollow pointer, rotation, pencil, zoom box, arrow, zoom out, dotted arrow, clear, animate, excel plus, mod label, writing, unavailable, resize row, resize column, drag grab, hand open, hand closed, hand pointer, zoom in, dilation, translation). &lt;br /&gt;
*'''[[cursor.show]]'''() - Shows the cursor on screen&lt;br /&gt;
&lt;br /&gt;
== document  ==&lt;br /&gt;
&lt;br /&gt;
*'''[[document.markChanged]]'''() - Flag the document as &amp;quot;changed&amp;quot; so the user has to save it after using it.&lt;br /&gt;
&lt;br /&gt;
== clipboard  ==&lt;br /&gt;
&lt;br /&gt;
*'''[[clipboard.addText]]'''() &lt;br /&gt;
*'''[[clipboard.getText]]'''()&lt;br /&gt;
&lt;br /&gt;
== locale  ==&lt;br /&gt;
&lt;br /&gt;
*'''[[locale.name]]'''() - Returns the current language the calculator is set in, formatted as ISO-639 (i.e&amp;amp;nbsp;: &amp;quot;fr&amp;quot;, &amp;quot;en&amp;quot;, &amp;quot;it&amp;quot; ...).&lt;br /&gt;
&lt;br /&gt;
== image  ==&lt;br /&gt;
&lt;br /&gt;
*'''[[image.copy]]'''(image, width, height) - returns a new Image which has a new scale. Width is the final width, Heigth, the final height of the image. &lt;br /&gt;
*'''[[image.height]]'''(image) - returns the height of the image given in parameter &lt;br /&gt;
*'''[[image.new]]'''(string) - Creates a new image from the string given in parameter (see TI.Image).&lt;br /&gt;
*'''[[image.width]]'''(image) - returns the width of the image given in parameter&lt;br /&gt;
&lt;br /&gt;
== timer  ==&lt;br /&gt;
&lt;br /&gt;
*'''[[timer.getMilliSecCounter]]'''() - Returns the amount of milliseconds elapsed since last calculator reboot. (in TI's Computer software, returns an absolute negative time) &lt;br /&gt;
*'''[[timer.start]]'''(int) - Starts a timer with 1 second. &lt;br /&gt;
*'''[[timer.stop]]'''() - Stops a timer&lt;br /&gt;
&lt;br /&gt;
== toolpalette  ==&lt;br /&gt;
&lt;br /&gt;
*'''[[toolpalette.enable]]'''(string) &lt;br /&gt;
*'''[[toolpalette.enableCopy]]'''() &lt;br /&gt;
*'''[[toolpalette.enableCut]]'''() &lt;br /&gt;
*'''[[toolpalette.enablePaste]]'''() &lt;br /&gt;
*'''[[toolpalette.register]]'''(table)&lt;br /&gt;
&lt;br /&gt;
== var  ==&lt;br /&gt;
&lt;br /&gt;
*'''[[var.list]]'''() - returns a list of all the variables in the entire Activity &lt;br /&gt;
*'''[[var.monitor]]'''() -&amp;amp;nbsp;? &lt;br /&gt;
*'''[[var.recall]]'''(string) - returns the variable value which name is given in parameter &lt;br /&gt;
*'''[[var.recallstr]]'''(string) - returns the variable value converted to string which name is given in parameter &lt;br /&gt;
*'''[[var.store]]'''(string, value) - store in the variable, which name is given in parameter, the value &lt;br /&gt;
*'''[[var.unmonitor]]'''() -&amp;amp;nbsp;?&lt;br /&gt;
&lt;br /&gt;
== Events  ==&lt;br /&gt;
&lt;br /&gt;
*'''[[on.paint]]'''(gc) is called when the GUI is painted. 'gc' is the Graphics Context (see above) &lt;br /&gt;
*'''[[on.resize]]'''() is called when the window is rezised &lt;br /&gt;
*'''[[on.timer]]'''() is called when the timer has been finished. Here an example of using timer to play an animation&amp;amp;nbsp;:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt; x = 1&lt;br /&gt;
 animating = false&lt;br /&gt;
 function on.paint(gc)&lt;br /&gt;
 	gc:setFont(&amp;quot;sansserif&amp;quot;, &amp;quot;r&amp;quot;, 10)&lt;br /&gt;
 	gc:drawString(tostring(x), 0, 0, &amp;quot;top&amp;quot;)&lt;br /&gt;
 	if animating then&lt;br /&gt;
 		x = x + 1&lt;br /&gt;
 		timer.start(0.5)&lt;br /&gt;
 	end&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 function on.charIn(ch)&lt;br /&gt;
 	animating = not animating -- switch state&lt;br /&gt;
 	platform.window:invalidate() -- recall graph engine&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 function on.timer()&lt;br /&gt;
 	timer.stop()&lt;br /&gt;
 	platform.window:invalidate() -- recall graph engine&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
*'''[[on.arrowKey]]'''(key) is called when an '''arrow key''' from the clickPad/TouchPad is pressed (right, left, up, down) &lt;br /&gt;
*'''[[on.arrowLeft]]'''() is called when the '''left''' arrow is pressed &lt;br /&gt;
*'''[[on.arrowRight]]'''() is called when the '''right''' arrow is pressed &lt;br /&gt;
*'''[[on.arrowUp]]'''() is called when the up '''arrow''' is pressed &lt;br /&gt;
*'''[[on.arrowDown]]'''() is called when the '''down''' arrow is pressed&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
*'''[[on.up]]'''() -- probably for the touchpad up motion &lt;br /&gt;
*'''[[on.down]]'''() -- probably for the touchpad down motion&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
*'''[[on.enterKey]]'''() is called when the '''enter''' key is pressed. &lt;br /&gt;
*'''[[on.escapeKey]]'''() is called when the '''escape''' key is pressed. &lt;br /&gt;
*'''[[on.tabKey]]'''() is called when the '''tab''' key is pressed. &lt;br /&gt;
*'''[[on.deleteKey]]'''() is called when the '''delete''' key is pressed. &lt;br /&gt;
*'''[[on.backspaceKey]]'''() is called when the '''clear''' key is pressed. &lt;br /&gt;
*'''[[on.returnKey]]'''() is called when the '''return''' key is pressed. &lt;br /&gt;
*'''[[on.contextMenu]]'''() is called when the combo-key '''Ctrl Menu''' is pressed. &lt;br /&gt;
*'''[[on.backtabKey]]'''() is called when the combo-key '''Maj Tab''' is pressed. &lt;br /&gt;
*'''[[on.clearKey]]'''() is called when the combo-key '''Ctrl Clear''' is pressed. &lt;br /&gt;
*'''[[on.help]]'''() is called when the combo-key '''Ctrl H''' is pressed.&lt;br /&gt;
&lt;br /&gt;
*'''[[on.charIn]]'''(string) is called when the Nspire detects a non arrow key being pressed. ch is the character it detect. If you want to auto start an event in the file linked to key r(like a reset) put on.charIn(“r”) where you want.&lt;br /&gt;
&lt;br /&gt;
*'''[[on.blink]]'''()&amp;amp;nbsp;? is called when the focus is lost on the page (like launching the document, changing page etc...)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
*'''[[on.deactivate]]'''()&amp;amp;nbsp;? is called when the focus is lost on the page (like launching the document, changing page etc...) &lt;br /&gt;
*'''[[on.activate]]'''()&amp;amp;nbsp;? is called when the focus is on the page (like launching the document, changing page etc...)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
*'''[[on.mouseDown]]'''(x, y) is called when we press the left mouse button. X and Y are the pressed point coordinates. &lt;br /&gt;
*'''[[on.mouseUp]]'''() is called when we release the left mouse button. &lt;br /&gt;
*'''[[on.mouseMove]]'''() is called when the mouse moves &lt;br /&gt;
*'''[[on.grabDown]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?) &lt;br /&gt;
*'''[[on.grabMove]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?) &lt;br /&gt;
*'''[[on.grabUp]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?) &lt;br /&gt;
*'''[[on.rightMouseDown]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?) &lt;br /&gt;
*'''[[on.rightMouseUp]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
*'''[[on.cutEnabled]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?) &lt;br /&gt;
*'''[[on.copyEnabled]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?) &lt;br /&gt;
*'''[[on.pasteEnabled]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?) &lt;br /&gt;
*'''[[on.cut]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?) &lt;br /&gt;
*'''[[on.copy]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?) &lt;br /&gt;
*'''[[on.paste]]'''()&amp;amp;nbsp;? (software only&amp;amp;nbsp;?)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== D2Editor  ==&lt;br /&gt;
&lt;br /&gt;
*'''[[D2Editor.newRichText]]'''() creates a new RichText object (default values&amp;amp;nbsp;: x, y, width, height = 0) &lt;br /&gt;
*'''[[D2Editor.resize]]'''(width, height) &lt;br /&gt;
*'''[[D2Editor.move]]'''(x, y) &lt;br /&gt;
*'''[[D2Editor.setText]]'''(string) &lt;br /&gt;
*'''[[D2Editor.getText]]'''() returns the RichText value &lt;br /&gt;
*'''[[D2Editor.setReadOnly]]'''(bool) bool&amp;amp;nbsp;: true/false&amp;amp;nbsp;: If true, the content becomes read-only, i.e. non-editable. &lt;br /&gt;
*'''[[D2Editor.setFormattedText]]'''() - ?&lt;br /&gt;
&lt;br /&gt;
Example of a valid function using the D2Editor &lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 function createRichTextBox&lt;br /&gt;
 	box = D2Editor.newRichText()&lt;br /&gt;
 	box:move(50, 50)&lt;br /&gt;
 	box:resize(50, 50)&lt;br /&gt;
 	box:setText(&amp;quot;Hello World !&amp;quot;)&lt;br /&gt;
 end&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== External Links  ==&lt;br /&gt;
&lt;br /&gt;
An interesting page about LUA code optimization, that can be really useful, especially for calculators&amp;amp;nbsp;: [http://trac.caspring.org/wiki/LuaPerformance Lua Performance] &lt;br /&gt;
&lt;br /&gt;
== Online Demo  ==&lt;br /&gt;
&lt;br /&gt;
[[Document Player]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=Main_Page&amp;diff=581</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=Main_Page&amp;diff=581"/>
		<updated>2011-11-28T09:57:55Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Welcome to the Inspired-Lua Wiki''', the place to know everything about Lua programming on the TI-Nspire! &lt;br /&gt;
&lt;br /&gt;
Please note that the wiki is not finished yet. However, it is constantly-updated. &lt;br /&gt;
&lt;br /&gt;
If you wish to see an example the documentation's structure, please read a fully-documented part such as the [[:Category:image|image category]], or &amp;quot;[[gc:drawString]]&amp;quot;, from the [[:Category:gc|gc category]]. &lt;br /&gt;
&lt;br /&gt;
== Categories  ==&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot; style=&amp;quot;width: 300px; height: 603px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;64&amp;quot; height=&amp;quot;64&amp;quot; | [[Image:Lua-logo.gif|64x64px|Lua-logo.gif]] &lt;br /&gt;
| [[Overview of the API|Standard Library]] &lt;br /&gt;
| The standard Lua functions&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Timer-icon.gif|64x64px|Timer-icon.gif]] &lt;br /&gt;
| [[timer|Timer]] &lt;br /&gt;
| The integrated timer&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;br&amp;gt; &lt;br /&gt;
| [[Events|Events]] &lt;br /&gt;
| Platform Events&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[gc|Graphical context]] &lt;br /&gt;
| Draw object to the screen with gc&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[platform|Platform]] &lt;br /&gt;
| Get and manage platform information&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[image|Image]] &lt;br /&gt;
| The image library&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Rtf icon.png|64x64px|Rtf icon.png]] &lt;br /&gt;
| [[D2Editor|D2Editor]] &lt;br /&gt;
| A rich text editor&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Locale.png|64x64px|Locale.png]] &lt;br /&gt;
| [[locale|Locale]] &lt;br /&gt;
| Get Locale information&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Clipboard-Paste-icon.png|67x67px|Clipboard-Paste-icon.png]] &lt;br /&gt;
| [[clipboard|Clipboard]] &lt;br /&gt;
| Add and get text from the clipboard&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:File.png|64x64px|File.png]] &lt;br /&gt;
| [[var|Var]] &lt;br /&gt;
| Manage files in the local document&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[document|Document]] &lt;br /&gt;
| Set global document flags&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[toolpalette|Tool Palette]] &lt;br /&gt;
| An easy to manage menu&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[cursor|Cursor]]&lt;br /&gt;
| Change or hide the cursor&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=Category:timer&amp;diff=570</id>
		<title>Category:timer</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=Category:timer&amp;diff=570"/>
		<updated>2011-10-22T17:36:47Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
Each script application has one timer at its disposal.&amp;lt;br /&amp;gt;&lt;br /&gt;
The resolution of the timer depends on the platform. It is about 0.01 seconds on the hand-held device.&lt;br /&gt;
&lt;br /&gt;
The script application should implement the “on.timer()” function to respond to timer ticks.&lt;br /&gt;
The timer continues to send ticks to the script application even when its window is not visible on the screen.&lt;br /&gt;
&lt;br /&gt;
The timer is automatically stopped when the document containing the script application is closed or if the script application is deleted.&lt;br /&gt;
&lt;br /&gt;
See an example at http://www.inspired-lua.org/2011/05/linking-events/&lt;br /&gt;
== Quick Overview ==&lt;br /&gt;
*'''[[timer.start]]'''(period) : Starts the timer with the given ''period'' (in seconds)&amp;lt;br /&amp;gt;&lt;br /&gt;
*'''[[timer.getMilliSecCounter]]'''() : Returns the value of the milliseconds elapsed since the calculator's last boot.&amp;lt;br /&amp;gt;&lt;br /&gt;
*'''[[timer.stop]]'''() : Stops the timer.&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=Main_Page&amp;diff=569</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=Main_Page&amp;diff=569"/>
		<updated>2011-09-10T18:26:27Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Welcome to the Inspired-Lua Wiki''', the place to know everything about Lua programming on the TI-Nspire! &lt;br /&gt;
&lt;br /&gt;
Please note that the wiki is not finished yet. However, it is constantly-updated. &lt;br /&gt;
&lt;br /&gt;
If you wish to see an example the documentation's structure, please read a fully-documented part such as the [[:Category:image|image category]], or &amp;quot;[[gc:drawString]]&amp;quot;, from the [[:Category:gc|gc category]]. &lt;br /&gt;
&lt;br /&gt;
== Categories  ==&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;300&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;64&amp;quot; height=&amp;quot;64&amp;quot; | [[Image:Lua-logo.gif|64x64px|Lua-logo.gif]] &lt;br /&gt;
| [[Overview of the API|Standard Library]] &lt;br /&gt;
| The standard Lua functions&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Timer-icon.gif|64x64px|Timer-icon.gif]] &lt;br /&gt;
| [[timer|Timer]] &lt;br /&gt;
| The integrated timer&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;br&amp;gt; &lt;br /&gt;
| [[Events|Events]] &lt;br /&gt;
| Platform Events&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[gc|Graphical context]] &lt;br /&gt;
| Draw object to the screen with gc&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[platform|Platform]] &lt;br /&gt;
| Get and manage platform information&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[image|Image]] &lt;br /&gt;
| The image library&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Rtf icon.png|64x64px|Rtf icon.png]] &lt;br /&gt;
| [[D2Editor|D2Editor]] &lt;br /&gt;
| A rich text editor&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Locale.png|64x64px|Locale.png]] &lt;br /&gt;
| [[locale|Locale]] &lt;br /&gt;
| Get Locale information&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Clipboard-Paste-icon.png|67x67px|Clipboard-Paste-icon.png]] &lt;br /&gt;
| [[clipboard|Clipboard]] &lt;br /&gt;
| Add and get text from the clipboard&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:File.png|64x64px|File.png]] &lt;br /&gt;
| [[var|Var]] &lt;br /&gt;
| Manage files in the local document&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[document|Document]] &lt;br /&gt;
| Set global document flags&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[toolpalette|Tool Palette]] &lt;br /&gt;
| An easy to manage menu&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=Main_Page&amp;diff=568</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=Main_Page&amp;diff=568"/>
		<updated>2011-09-10T18:24:36Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Welcome to the Inspired-Lua Wiki''', the place to know everything about Lua programming on the TI-Nspire! &lt;br /&gt;
&lt;br /&gt;
Please note that the wiki is not finished yet. However, it is constantly-updated. &lt;br /&gt;
&lt;br /&gt;
If you wish to see an example the documentation's structure, please read a fully-documented part such as the [[:Category:image|image category]], or &amp;quot;[[gc:drawString]]&amp;quot;, from the [[:Category:gc|gc category]]. &lt;br /&gt;
&lt;br /&gt;
== Categories  ==&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;300&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;64&amp;quot; height=&amp;quot;64&amp;quot; | [[Image:Lua-logo.gif|64x64px|Lua-logo.gif]] &lt;br /&gt;
| [[Overview_of_the_API|Standard Library]]&lt;br /&gt;
| The standard Lua functions&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Timer-icon.gif|64x64px|Timer-icon.gif]] &lt;br /&gt;
| [[timer|Timer]] &lt;br /&gt;
| The integrated timer&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;br&amp;gt; &lt;br /&gt;
| [[Events|Events]] &lt;br /&gt;
| Platform Events&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[gc|Graphical context]] &lt;br /&gt;
| Draw object to the screen with gc&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[platform|Platform]] &lt;br /&gt;
| Get and manage platform information&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[image|Image]] &lt;br /&gt;
| The image library&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Rtf icon.png|64x64px|Rtf icon.png]] &lt;br /&gt;
| [[D2Editor|D2Editor]] &lt;br /&gt;
| A rich text editor&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Locale.png|64x64px|Locale.png]] &lt;br /&gt;
| [[locale|Locale]] &lt;br /&gt;
| Get Locale information&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:Clipboard-Paste-icon.png|67x67px|Clipboard-Paste-icon.png]] &lt;br /&gt;
| [[clipboard|Clipboard]] &lt;br /&gt;
| Add and get text from the clipboard&lt;br /&gt;
|-&lt;br /&gt;
| [[Image:File.png|64x64px|File.png]] &lt;br /&gt;
| [[var|Var]] &lt;br /&gt;
| Manage files in the local document&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[document|Document]] &lt;br /&gt;
| Set global document flags&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| [[toolpalette|Tool Palette]] &lt;br /&gt;
| An east to manage menu&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=File:File.png&amp;diff=567</id>
		<title>File:File.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=File:File.png&amp;diff=567"/>
		<updated>2011-09-10T18:21:26Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Artist: Deleket (Available for custom work)
License: CC Attribution-Noncommercial-No Derivate 3.0&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Artist: Deleket (Available for custom work)&lt;br /&gt;
License: CC Attribution-Noncommercial-No Derivate 3.0&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=File:Clipboard-Paste-icon.png&amp;diff=566</id>
		<title>File:Clipboard-Paste-icon.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=File:Clipboard-Paste-icon.png&amp;diff=566"/>
		<updated>2011-09-10T18:20:33Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Artist: Deleket (Available for custom work)
License: CC Attribution-Noncommercial-No Derivate 3.0&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Artist: Deleket (Available for custom work)&lt;br /&gt;
License: CC Attribution-Noncommercial-No Derivate 3.0&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=File:Locale.png&amp;diff=565</id>
		<title>File:Locale.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=File:Locale.png&amp;diff=565"/>
		<updated>2011-09-10T18:17:15Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Author: Everaldo Coelho
License: LGPL&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Author: Everaldo Coelho&lt;br /&gt;
License: LGPL&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=File:Rtf_icon.png&amp;diff=564</id>
		<title>File:Rtf icon.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=File:Rtf_icon.png&amp;diff=564"/>
		<updated>2011-09-10T18:14:56Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Rich Text Format&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Rich Text Format&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=File:Timer-icon.gif&amp;diff=563</id>
		<title>File:Timer-icon.gif</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=File:Timer-icon.gif&amp;diff=563"/>
		<updated>2011-09-10T18:01:19Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=File:Lua-logo.gif&amp;diff=562</id>
		<title>File:Lua-logo.gif</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=File:Lua-logo.gif&amp;diff=562"/>
		<updated>2011-09-10T17:51:39Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: The Lua Logo

Copyright © 1998 Lua.org. Graphic design by Alexandre Nakonechnyj.
Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, and distribute this logo for any purpose, including commercial app&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Lua Logo&lt;br /&gt;
&lt;br /&gt;
Copyright © 1998 Lua.org. Graphic design by Alexandre Nakonechnyj.&lt;br /&gt;
Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, and distribute this logo for any purpose, including commercial applications, subject to the following conditions:&lt;br /&gt;
&lt;br /&gt;
The origin of this logo must not be misrepresented; you must not claim that you drew the original logo.&lt;br /&gt;
The only modification you can make is to adapt the orbiting text to your product name.&lt;br /&gt;
The logo can be used in any scale as long as the relative proportions of its elements are maintained.&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=Category:toolpalette&amp;diff=535</id>
		<title>Category:toolpalette</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=Category:toolpalette&amp;diff=535"/>
		<updated>2011-08-25T08:36:28Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Quick Overview==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The tool palette provides a menu of commands, selectable by the user, that invoke functionality of the script app. The menu itself is accessible by pressing the &amp;quot;Menu&amp;quot; button. &lt;br /&gt;
&lt;br /&gt;
*'''[[toolpalette.register|register]]'''(menuStructure) :  Registers the ''menuStructure'' table. &lt;br /&gt;
&lt;br /&gt;
*'''[[toolpalette.enable|enable]]'''(toolname, itemname, state) : Enables or disables a menu item in the tool palette.    &lt;br /&gt;
*'''[[toolpalette.enableCopy|enableCopy]]'''(state) : This routine enables / disables the Edit &amp;gt; Copy menu command.&lt;br /&gt;
*'''[[toolpalette.enableCut|enableCut]]'''(state) : This routine enables / disables the Edit &amp;gt; Cut menu command.&lt;br /&gt;
*'''[[toolpalette.enablePaste|enablePaste]]'''(state) : This routine enables / disables the Edit &amp;gt; Paste menu command.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=on.arrowKey&amp;diff=455</id>
		<title>on.arrowKey</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=on.arrowKey&amp;diff=455"/>
		<updated>2011-06-01T13:40:54Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;on.'''arrowKey'''() is an event handler. &amp;lt;br&amp;gt; This handler get called when a arrow key gets pressed. This handler will '''not''' be called if you already use other handlers to catch arrow keys (such as on.arrowLeft).&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
msg = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawString(msg, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowKey(key)&lt;br /&gt;
	msg = &amp;quot;Key &amp;quot; .. key&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== See Also  ==&lt;br /&gt;
&lt;br /&gt;
*[[on.arrowDown]] &lt;br /&gt;
*[[on.arrowUp]] &lt;br /&gt;
*[[on.arrowRight]] &lt;br /&gt;
*[[on.arrowLeft]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=on.arrowRight&amp;diff=454</id>
		<title>on.arrowRight</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=on.arrowRight&amp;diff=454"/>
		<updated>2011-06-01T13:38:22Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;on.'''arrowRight'''() is an event handler. &amp;lt;br&amp;gt; This handler get called when the right arrow key gets pressed. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
msg = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawString(msg, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowUp()&lt;br /&gt;
	msg = &amp;quot;Key up&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowDown()&lt;br /&gt;
	msg = &amp;quot;Key down&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowLeft()&lt;br /&gt;
	msg = &amp;quot;Key left&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowRight()&lt;br /&gt;
	msg = &amp;quot;Key right&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[[on.arrowDown]]&lt;br /&gt;
*[[on.arrowUp]]&lt;br /&gt;
*[[on.arrowLeft]]&lt;br /&gt;
*[[on.arrowKey]]&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=on.arrowDown&amp;diff=453</id>
		<title>on.arrowDown</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=on.arrowDown&amp;diff=453"/>
		<updated>2011-06-01T13:37:56Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;on.'''arrowDown'''() is an event handler. &amp;lt;br&amp;gt; This handler get called when the down arrow key gets pressed. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
msg = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawString(msg, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowUp()&lt;br /&gt;
	msg = &amp;quot;Key up&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowDown()&lt;br /&gt;
	msg = &amp;quot;Key down&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowLeft()&lt;br /&gt;
	msg = &amp;quot;Key left&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowRight()&lt;br /&gt;
	msg = &amp;quot;Key right&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[[on.arrowUp]]&lt;br /&gt;
*[[on.arrowLeft]]&lt;br /&gt;
*[[on.arrowRight]]&lt;br /&gt;
*[[on.arrowKey]]&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=on.arrowLeft&amp;diff=452</id>
		<title>on.arrowLeft</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=on.arrowLeft&amp;diff=452"/>
		<updated>2011-06-01T13:37:28Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;on.'''arrowLeft'''() is an event handler. &amp;lt;br&amp;gt; This handler get called when the left arrow key gets pressed. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
msg = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawString(msg, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowUp()&lt;br /&gt;
	msg = &amp;quot;Key up&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowDown()&lt;br /&gt;
	msg = &amp;quot;Key down&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowLeft()&lt;br /&gt;
	msg = &amp;quot;Key left&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowRight()&lt;br /&gt;
	msg = &amp;quot;Key right&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[[on.arrowDown]]&lt;br /&gt;
*[[on.arrowUp]]&lt;br /&gt;
*[[on.arrowRight]]&lt;br /&gt;
*[[on.arrowKey]]&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=on.arrowRight&amp;diff=451</id>
		<title>on.arrowRight</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=on.arrowRight&amp;diff=451"/>
		<updated>2011-06-01T13:36:19Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;on.'''arrowRight'''() is an event handler. &amp;lt;br&amp;gt; This handler get called when the right arrow key gets pressed. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
msg = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawString(msg, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowUp()&lt;br /&gt;
	msg = &amp;quot;Key up&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowDown()&lt;br /&gt;
	msg = &amp;quot;Key down&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowLeft()&lt;br /&gt;
	msg = &amp;quot;Key left&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
(&lt;br /&gt;
function on.arrowRight()&lt;br /&gt;
	msg = &amp;quot;Key right&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[[on.arrowDown]]&lt;br /&gt;
*[[on.arrowUp]]&lt;br /&gt;
*[[on.arrowLeft]]&lt;br /&gt;
*[[on.arrowKey]]&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=on.arrowLeft&amp;diff=450</id>
		<title>on.arrowLeft</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=on.arrowLeft&amp;diff=450"/>
		<updated>2011-06-01T13:35:21Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;on.'''arrowLeft'''() is an event handler. &amp;lt;br&amp;gt; This handler get called when the left arrow key gets pressed. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
msg = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawString(msg, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowUp()&lt;br /&gt;
	msg = &amp;quot;Key up&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowDown()&lt;br /&gt;
	msg = &amp;quot;Key down&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowLeft()&lt;br /&gt;
	msg = &amp;quot;Key left&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
(&lt;br /&gt;
function on.arrowRight()&lt;br /&gt;
	msg = &amp;quot;Key right&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[[on.arrowDown]]&lt;br /&gt;
*[[on.arrowUp]]&lt;br /&gt;
*[[on.arrowRight]]&lt;br /&gt;
*[[on.arrowKey]]&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=on.arrowDown&amp;diff=449</id>
		<title>on.arrowDown</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=on.arrowDown&amp;diff=449"/>
		<updated>2011-06-01T13:34:43Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;on.'''arrowDown'''() is an event handler. &amp;lt;br&amp;gt; This handler get called when the down arrow key gets pressed. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
msg = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawString(msg, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowUp()&lt;br /&gt;
	msg = &amp;quot;Key up&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowDown()&lt;br /&gt;
	msg = &amp;quot;Key down&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowLeft()&lt;br /&gt;
	msg = &amp;quot;Key left&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
(&lt;br /&gt;
function on.arrowRight()&lt;br /&gt;
	msg = &amp;quot;Key right&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
*[[on.arrowUp]]&lt;br /&gt;
*[[on.arrowLeft]]&lt;br /&gt;
*[[on.arrowRight]]&lt;br /&gt;
*[[on.arrowKey]]&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=on.arrowUp&amp;diff=448</id>
		<title>on.arrowUp</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=on.arrowUp&amp;diff=448"/>
		<updated>2011-06-01T13:33:55Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;on.'''arrowUp'''() is an event handler. &amp;lt;br&amp;gt; This handler get called when the UP arrow key gets pressed. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
msg = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawString(msg, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowUp()&lt;br /&gt;
	msg = &amp;quot;Key up&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowDown()&lt;br /&gt;
	msg = &amp;quot;Key down&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowLeft()&lt;br /&gt;
	msg = &amp;quot;Key left&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowRight()&lt;br /&gt;
	msg = &amp;quot;Key right&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Prints which arrow key gets pressed.&lt;br /&gt;
&lt;br /&gt;
== See Also  ==&lt;br /&gt;
&lt;br /&gt;
*[[on.arrowDown]] &lt;br /&gt;
*[[on.arrowLeft]] &lt;br /&gt;
*[[on.arrowRight]] &lt;br /&gt;
*[[on.arrowKey]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=on.arrowUp&amp;diff=447</id>
		<title>on.arrowUp</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=on.arrowUp&amp;diff=447"/>
		<updated>2011-06-01T13:32:56Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;on.'''arrowUp'''() is an event handler. &amp;lt;br&amp;gt; This handler get called when the UP arrow key gets pressed. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
msg = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	gc:drawString(msg, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowUp()&lt;br /&gt;
	msg = &amp;quot;Key up&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowDown()&lt;br /&gt;
	msg = &amp;quot;Key down&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.arrowLeft()&lt;br /&gt;
	msg = &amp;quot;Key left&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
(&lt;br /&gt;
function on.arrowRight()&lt;br /&gt;
	msg = &amp;quot;Key right&amp;quot;&lt;br /&gt;
	platform.window:invalidate()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== See Also  ==&lt;br /&gt;
&lt;br /&gt;
*[[on.arrowDown]] &lt;br /&gt;
*[[on.arrowLeft]] &lt;br /&gt;
*[[on.arrowRight]] &lt;br /&gt;
*[[on.arrowKey]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:getExpression&amp;diff=446</id>
		<title>D2Editor:getExpression</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:getExpression&amp;diff=446"/>
		<updated>2011-06-01T13:23:14Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Created page with &amp;quot;D2Editor:'''getExpression'''&amp;amp;nbsp;is a function that is part of the D2Editor Library.   &amp;lt;br&amp;gt;   This function returns the content of a D2Editor as an UTF-8 encoded string, and is ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor:'''getExpression'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function returns the content of a D2Editor as an UTF-8 encoded string, and is a synonym for getText().&lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor:'''getExpression'''()&amp;lt;br&amp;gt; returns the content of the editor.&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it be, but it shows the basics). &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.newRichText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.resize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.move]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:setExpression&amp;diff=445</id>
		<title>D2Editor:setExpression</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:setExpression&amp;diff=445"/>
		<updated>2011-06-01T13:19:51Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor:'''setExpression'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function sets the contents of a D2Editor, and is a synonym of setText.&lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor:'''setExpression'''(text, [cursor], [selection])&amp;lt;br&amp;gt; Sets the content to text, or appends it to a certain position if cursor is set. If selection is -1, no text is selected (?).&lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it be, but it shows the basics). &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.newRichText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.resize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.move]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:setExpression&amp;diff=444</id>
		<title>D2Editor:setExpression</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:setExpression&amp;diff=444"/>
		<updated>2011-06-01T13:19:24Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Created page with &amp;quot;D2Editor:'''setExpression'''&amp;amp;nbsp;is a function that is part of the D2Editor Library.   &amp;lt;br&amp;gt;   This function sets the contents of a D2Editor, and is a synonym of setText.  == Syn...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor:'''setExpression'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function sets the contents of a D2Editor, and is a synonym of setText.&lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor:'''setExpression'''(text, [cursor], [selection])&amp;lt;br&amp;gt; Sets the content to text, or appends it to a certain position if cursor is set. If selection is -1, no text is selected (?).&lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it be, but it shows the basics). &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.newRichText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.resize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:move&amp;diff=443</id>
		<title>D2Editor:move</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:move&amp;diff=443"/>
		<updated>2011-06-01T13:13:12Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor:'''move'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function moves a D2Editor to given coordinates. &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor:'''move'''(x, y)&amp;lt;br&amp;gt; sets the position of the editor (relative to the upper left corner) &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it should be, but it shows the basics).&lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.newRichText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.resize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:newRichText&amp;diff=442</id>
		<title>D2Editor:newRichText</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:newRichText&amp;diff=442"/>
		<updated>2011-06-01T13:12:40Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor.'''newRichText'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function creates and returns a new rich text editor. In order for the editor to display you will need to use use [[D2Editor.move]]() and [[D2Editor.resize]]() after the declaration.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor.'''newRichText'''()&amp;lt;br&amp;gt;creates and returns a new rich text editor.&lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it should be, but it shows the basics).&lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.move]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.resize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:resize&amp;diff=441</id>
		<title>D2Editor:resize</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:resize&amp;diff=441"/>
		<updated>2011-06-01T13:12:01Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor:'''resize'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function resizes a D2Editor to the gives height and width. &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor:'''resize'''(width, height)&amp;lt;br&amp;gt; sets the height and width of an editor &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it should be, but it shows the basics).&lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.newRichText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.move]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:resize&amp;diff=440</id>
		<title>D2Editor:resize</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:resize&amp;diff=440"/>
		<updated>2011-06-01T13:11:23Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor:'''resize'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function resizes a D2Editor to the gives height and width. &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor:'''resize'''(width, height)&amp;lt;br&amp;gt; sets the height and width of an editor &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it be, but it shows the basics). &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.newRichText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.move]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:move&amp;diff=439</id>
		<title>D2Editor:move</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:move&amp;diff=439"/>
		<updated>2011-06-01T13:10:56Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor:'''move'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function moves a D2Editor to given coordinates. &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor:'''move'''(x, y)&amp;lt;br&amp;gt; sets the position of the editor (relative to the upper left corner) &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it be, but it shows the basics). &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.newRichText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.resize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:move&amp;diff=438</id>
		<title>D2Editor:move</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:move&amp;diff=438"/>
		<updated>2011-06-01T13:09:54Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor.'''move'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function moves a D2Editor to given coordinates. &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor:'''move'''(x, y)&amp;lt;br&amp;gt; sets the position of the editor (relative to the upper left corner)&lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it be, but it shows the basics). &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.newRichText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.resize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:resize&amp;diff=437</id>
		<title>D2Editor:resize</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:resize&amp;diff=437"/>
		<updated>2011-06-01T13:09:26Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Created page with &amp;quot;D2Editor.'''resize'''&amp;amp;nbsp;is a function that is part of the D2Editor Library.   &amp;lt;br&amp;gt;   This function resizes a D2Editor to the gives height and width.    == Syntax  ==  D2Editor...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor.'''resize'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function resizes a D2Editor to the gives height and width.  &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor:'''resize'''(width, height)&amp;lt;br&amp;gt; sets the height and width of an editor&lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it be, but it shows the basics). &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.newRichText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.move]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:move&amp;diff=436</id>
		<title>D2Editor:move</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:move&amp;diff=436"/>
		<updated>2011-06-01T13:07:38Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Created page with &amp;quot;D2Editor.'''move'''&amp;amp;nbsp;is a function that is part of the D2Editor Library.   &amp;lt;br&amp;gt;   This function moves a D2Editor to given coordinates.   == Syntax  ==  D2Editor.'''move'''(x,...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor.'''move'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function moves a D2Editor to given coordinates. &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor.'''move'''(x, y)&amp;lt;br&amp;gt; sets the position of the editor (relative to the upper left corner) &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it be, but it shows the basics). &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.newRichText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.resize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:newRichText&amp;diff=435</id>
		<title>D2Editor:newRichText</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:newRichText&amp;diff=435"/>
		<updated>2011-06-01T13:05:07Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor.'''newRichText'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function creates and returns a new rich text editor. In order for the editor to display you will need to use use [[D2Editor.move]]() and [[D2Editor.resize]]() after the declaration.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor.'''newRichText'''()&amp;lt;br&amp;gt;creates and returns a new rich text editor.&lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it be, but it shows the basics). &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.move]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.resize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=D2Editor:newRichText&amp;diff=434</id>
		<title>D2Editor:newRichText</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=D2Editor:newRichText&amp;diff=434"/>
		<updated>2011-06-01T13:04:29Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Created page with &amp;quot;D2Editor.'''newRichText'''&amp;amp;nbsp;is a function that is part of the D2Editor Library.   &amp;lt;br&amp;gt;   This function creates and returns a new rich text editor. In order for the editor to ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;D2Editor.'''newRichText'''&amp;amp;nbsp;is a function that is part of the D2Editor Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function creates and returns a new rich text editor. In order for the editor to display you will need to use use [[D2Editor.move]]() and [[D2Editor.resize]]() after the declaration.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
D2Editor.'''newRichText'''()&amp;lt;br&amp;gt; &amp;amp;lt;creates and returns a new rich text editor. &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	editor = D2Editor.newRichText()&lt;br /&gt;
	editor:move(0,0)&lt;br /&gt;
	editor:resize(200,100)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.charIn(char)&lt;br /&gt;
	currentText = editor:getText()&lt;br /&gt;
	editor:setText(currentText .. char)&lt;br /&gt;
	--Add char to the editor&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.enterKey()&lt;br /&gt;
	on.charIn(string.char(10))&lt;br /&gt;
	--Add a new line&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
A very simple text editor (its actually more complicated that it be, but it shows the basics). &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[D2Editor.getExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.getExpressionSelection]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.isVisible]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.move]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.resize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setExpression]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFocus]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFontSize]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setFormattedText]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setMainFont]]()&amp;amp;nbsp;: &lt;br /&gt;
*[[D2Editor.setReadOnly]]()&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
[[Category:D2Editor]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=Category:var&amp;diff=433</id>
		<title>Category:var</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=Category:var&amp;diff=433"/>
		<updated>2011-06-01T12:40:54Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Quick Overview  ==&lt;br /&gt;
&lt;br /&gt;
*[[var.list]]() - Lists of names of variables currently used. &lt;br /&gt;
*[[var.monitor]](name) - Turns on monitoring of the math variable with given ''name''. &lt;br /&gt;
*[[var.unmonitor]](name) - Turns off monitoring of the math variable with given ''name''. &lt;br /&gt;
*[[var.recall]](name)&amp;amp;nbsp;: Returns the value of a math variable with the given ''name''. &lt;br /&gt;
*[[var.recallstr]](name)&amp;amp;nbsp;: Returns the value of a math variable with the given ''name'' as a string. &lt;br /&gt;
*[[var.store]](name, value)&amp;amp;nbsp;: Stores ''value'' as a math variable with the given ''name''.&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=var.unmonitor&amp;diff=432</id>
		<title>var.unmonitor</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=var.unmonitor&amp;diff=432"/>
		<updated>2011-06-01T12:38:33Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;var.'''unmonitor'''&amp;amp;nbsp;is a function that is part of the Var Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function turns off monitoring of a variable (given in the arguments). &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
var.'''monitor(varname)'''&amp;lt;br&amp;gt; disables monitoring of the variable varname (must be a string). &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	var.monitor(&amp;quot;sol&amp;quot;)&lt;br /&gt;
	--turn monitoring on for the variable &amp;quot;sol&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.varChange(list)&lt;br /&gt;
	--The variable got changed&lt;br /&gt;
	var.unmonitor(&amp;quot;sol&amp;quot;)&lt;br /&gt;
	--Turn the monitoring off&lt;br /&gt;
	return 0 -- allow the change&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[var.monitor]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[on.varChange]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.list]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recall]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recallstr]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.store]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:var]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=var.unmonitor&amp;diff=431</id>
		<title>var.unmonitor</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=var.unmonitor&amp;diff=431"/>
		<updated>2011-06-01T12:36:57Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Created page with &amp;quot;var.'''unmonitor'''&amp;amp;nbsp;is a function that is part of the Var Library.   &amp;lt;br&amp;gt;   This function turns off monitoring of a variable (given in the arguments).   == Syntax  ==  var.'...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;var.'''unmonitor'''&amp;amp;nbsp;is a function that is part of the Var Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function turns off monitoring of a variable (given in the arguments). &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
var.'''monitor(varname)'''&amp;lt;br&amp;gt; disables monitoring of the variable varname (must be a string). &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	var.monitor(&amp;quot;sol&amp;quot;)&lt;br /&gt;
	--turn monitoring on for the variable &amp;quot;sol&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.varChange(list)&lt;br /&gt;
	--The variable got changed&lt;br /&gt;
	var.unmonitor(&amp;quot;sol&amp;quot;)&lt;br /&gt;
	--Turn the monitoring off&lt;br /&gt;
	return 0 -- allow the change&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[var.list]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recall]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recallstr]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.store]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.monitor]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:var]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=var.monitor&amp;diff=430</id>
		<title>var.monitor</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=var.monitor&amp;diff=430"/>
		<updated>2011-06-01T12:34:42Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;var.'''monitor'''&amp;amp;nbsp;is a function that is part of the Var Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function turns on monitoring of a variable (given in the arguments). When another script/program modifies the variable it will trigger [[on.varChange|on.varChange]].&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
var.'''monitor(varname)'''&amp;lt;br&amp;gt; starts monitoring the variable varname (must be a string). &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	var.monitor(&amp;quot;sol&amp;quot;)&lt;br /&gt;
	--turn monitoring on for the variable &amp;quot;sol&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.varChange(list)&lt;br /&gt;
	--The variable got changed!&lt;br /&gt;
	return 0 -- allow the change&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[var.list]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recall]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recallstr]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.store]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.unmonitor]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:var]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=var.monitor&amp;diff=429</id>
		<title>var.monitor</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=var.monitor&amp;diff=429"/>
		<updated>2011-06-01T12:33:51Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;var.'''monitor'''&amp;amp;nbsp;is a function that is part of the Var Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This function turns on monitoring of a variable (given in the arguments). When another script/program modifies the variable it will trigger on.varChange.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
var.'''monitor(varname)'''&amp;lt;br&amp;gt; starts monitoring the variable varname (must be a string). &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	var.monitor(&amp;quot;sol&amp;quot;)&lt;br /&gt;
	--turn monitoring on for the variable &amp;quot;sol&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.varChange(list)&lt;br /&gt;
	--The variable got changed!&lt;br /&gt;
	return 0 -- allow the change&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[var.list]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recall]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recallstr]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.store]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.unmonitor]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:var]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=var.store&amp;diff=428</id>
		<title>var.store</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=var.store&amp;diff=428"/>
		<updated>2011-06-01T12:27:41Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Created page with &amp;quot;var.'''store'''&amp;amp;nbsp;is a function that is part of the Var Library.   &amp;lt;br&amp;gt;   The function set the content of a variable in the current document. Returns nil when the operation su...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;var.'''store'''&amp;amp;nbsp;is a function that is part of the Var Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The function set the content of a variable in the current document. Returns nil when the operation succeeded, otherwise an error message.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
var.'''store(varname, data)'''&amp;lt;br&amp;gt; stores data in the variable varname (must be a string). &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.create()&lt;br /&gt;
	var.store(&amp;quot;sol&amp;quot;,&amp;quot;very very very many&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	variable = var.recall(&amp;quot;sol&amp;quot;) --assuming that sol exists &lt;br /&gt;
	gc:drawString(&amp;quot;The diameter of the sun is &amp;quot; .. tostring(variable) .. &amp;quot; KM&amp;quot;, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This code retrieves the content of the variable sol (string), and prints it on the screen. &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[var.list]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recallstr]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recall]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.monitor]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.unmonitor]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:var]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=var.recallstr&amp;diff=427</id>
		<title>var.recallstr</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=var.recallstr&amp;diff=427"/>
		<updated>2011-06-01T12:23:00Z</updated>

		<summary type="html">&lt;p&gt;Jimbauwens: Created page with &amp;quot;var.'''recallstr'''&amp;amp;nbsp;is a function that is part of the Var Library.   &amp;lt;br&amp;gt;   The function returns a the content of a math variable in the current document as a string. If it ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;var.'''recallstr'''&amp;amp;nbsp;is a function that is part of the Var Library. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The function returns a the content of a math variable in the current document as a string. If it cannot be converted to a string, it returns nil and an error message.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
&lt;br /&gt;
var.'''recallstr(varname)'''&amp;lt;br&amp;gt; returns the content of the variable varname (must be a string). &lt;br /&gt;
&lt;br /&gt;
== Example  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function on.paint(gc)&lt;br /&gt;
	variable = var.recall(&amp;quot;sol&amp;quot;) --assuming that sol exists &lt;br /&gt;
	gc:drawString(&amp;quot;The diameter of the sun is &amp;quot; .. variable .. &amp;quot; KM&amp;quot;, 10, 10, &amp;quot;top&amp;quot;)&lt;br /&gt;
	&lt;br /&gt;
	--the difference with the other script in the recall page is that you don't need to use tostring for numbers&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This code retrieves the content of the variable sol (number), and prints it on the screen. &lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
&lt;br /&gt;
*[[var.list]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.recall]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.store]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.monitor]]&amp;lt;br&amp;gt; &lt;br /&gt;
*[[var.unmonitor]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:var]]&lt;/div&gt;</summary>
		<author><name>Jimbauwens</name></author>
		
	</entry>
</feed>