UITextArea

onchange

Type: event
Return: function
Description: fires when the textbox value changes

onkeypress

Type: event
Return: function
Description: fires when a key is pressed in the textbox

myTextBox.onkeypress = function (key)
{
    alert("key code was " + key);
    var chr = String.fromCharCode(key);
    alert("letter was " + chr);
}

onclick

Type: event
Return: function
Description: fires when the mouse is clicked in the textbox

id

Type: property (read/write)
Return: string
Description: an identifier for the textbox

value

Type: property (read/write)
Return: string
Description: the text contained inside the textbox

readOnly

Type: property (read/write)
Return: bool
Description: whether the textbox is accepting user input

x

Type: property (read/write)
Return: int
Description: the x position of the textbox

y

Type: property (read/write)
Return: int
Description: the y position of the textbox

width

Type: property (read/write)
Return: int
Description: the width of the textbox

height

Type: property (read/write)
Return: int
Description: the height of the textbox

focus

Type: function
Return: void
Description: give the textbox focus

scrollToTop

Type: function
Return: void
Description: send the vertical scroll bar to the upper most position

scrollToBottom

Type: function
Return: void
Description: send the vertical scroll bar to the lower most position

append

Type: function
Return: void
Description: add text to the end of the textbox

appendLine

Type: function
Return: void
Description: add a line of text to the end of the textbox

clear

Type: function
Return: void
Description: clear all text from the textbox

visible

Type: property (read/write)
Return: bool
Description: whether the textbox is visible on the UI panel

mono

Type: property (read/write)
Return: bool
Description: whether the font style should be monotype

enabled

Type: property (read/write)
Return: bool
Description: whether the textbox is clickable

trimmed

Type: property (read/write)
Return: bool
Description: whether the textbox is trimmed to a maximum of 300 lines

promote

Type: function
Return: void
Description: increase the z index of the textbox

demote

Type: function
Return: void
Description: decrease the z index of the textbox

Last edited Feb 15, 2014 at 8:55 PM by oobenoob, version 3