Interface TextField
access this type via: ui.TextField (provides, requires or uses)
--- extends:KeyEventObject
A text entry field for a single line of text.
Events
textChanged()
Functions
TextField()
char[] getText()
void setText(char text[])
void setWidth(int w)
void setPasswordMask(bool t)
void setClickTarget(storeClickableObject o)
void setBackground(storeColor c)
void setBorder(storeColor c)
void setHighlight(storeColor c)
void setTextColor(storeColor c)
void setFont(storeFont f)
void setHintItems(storeString items[])
void setCursorPos(int p)
int getCursorPos()
Events
textChanged An event which reports whenever the content of the text field is changed (which could be by entering new text, cutting or pasting, deleting text, etc.).
TextField()
char[] getText()
Get the current text in the field.
void setText(char text[])
Set the current text in the field.
void setWidth(int w)
Set the width of the field in pixels (note that its height is calculated automatically from the font).
void setPasswordMask(bool t)
Set whether or not text is obscured by password mask characters (default is false).
void setClickTarget(storeClickableObject o)
Set a clickable object (such as a button) to send a 'click' notification to when the user presses the return key.
void setBackground(storeColor c)
Set the background of the text field.
void setBorder(storeColor c)
Set the border of the text field.
void setHighlight(storeColor c)
Set the text highlight style of the text field.
void setTextColor(storeColor c)
Set the text color of the text field.
void setFont(storeFont f)
Set the font used in the text field.
void setHintItems(storeString items[])
Set a list of hint items to be displayed by the text field (which the user can click on, to auto-fill the text field).
void setCursorPos(int p)
Set the position of the cursor, as a character index starting from zero.
int getCursorPos()
Get the current position of the cursor, as a character index starting from zero.