TextEdit

TextEdit class is used for control and management of the SimpleText parts.

left

Gets or sets the position at the left of the parts.

top

Gets or sets the position at the top of the parts.

width

Gets or sets the width of the parts.

height

Gets or sets the height of the parts.

bgcolor

Gets or sets the background color of the parts.

fgcolor

Gets or sets the font color of the parts.

font

Gets or sets the font of the part by a name.

//ex:
Parts.font = "MS Gothic";

fontsize

Gets or sets the font size of the part by pixel.

alias

Gets the alias of the parts.

enabled

Gets or sets the available state of the part.

// ex:Disabled
Parts.enabled = false;

visible

Gets or sets a visibility of the part.

// ex:Hide a parts.
Parts.visible = false;

tabindex

Gets or sets the tab order of the parts.

// ex:Sets first
Parts.tabindex = 0;

focus()

Sets focus to this parts.

reset()

Restores a text to an initial status.

seltext

Gets or replaces the selected text.

value

Gets the value of the part. If the type of a value is String, it returns with String type. If other, returns with Number type.

maxlen

Gets the number of the maximum input characters.

valuetype

Gets the type stored in the parts by a text.

attachEvent(funcname, func)

Connects a parts event with a function.

Event name Example Description
gotfocus func() Occurs when the form becomes active.
lostfocus func() Occurs when the form becomes non-active.
changed func() Occurs when the contents of the text are changed.