TE Edit Control Java / HTML-JavaScript Help
Product page

TerInsertTextInputField

Insert a text input field at the cursor position.

int TerInsertTextInputField( name, InitText, MaxLen, border, typeface, twipsize, style, color, insert, repaint)
String name;field name
String InitText;Initial text
int MaxLen;Maximum number of characters allowed in the field. Set to 0 to specify no limit.
boolean border;Set to true to draw the box around the text field.
String typeface;font typeface for the field text.
int twipsize;Font pointsize specified in Twips unit. (20 Twips = 1 Point).
int style;Style (BOLD, ULINE, ITALIC) for the text. Use the logical OR operator to specify more than one style constants.
Color color;Foreground color for the text. This argument is ineffective currently. Set to 0.
boolean insert;Set to true to insert the new input field into the document. Set to false to simply return the picture id of the new field without inserting into the text.
boolean repaint;Repaint the window after this operation

Description: This function inserts a text box. The user can input data into the text box.

Return Value: This function returns the picture id of the text input field. It returns 0 to indicate an error condition.