TE Edit Control Java / HTML-JavaScript Help
Product page

TerInsertComboBoxField

Insert a combo-box field at the cursor position.

int TerInsertComboBoxField(name, items, SelectedItem, insert, repaint)
String name;field name
String items;List of items in the combo-box. Each item must be delimited by a '|' character. Example: "Red|Blue|Green|Yellow".
String SelectedItem;The value of the selected item. Example: "Blue".
boolean Insert;Set to TRUE to insert the combo-box. Set to FALSE to create a combo-box object, but do not insert it in the text.
boolean repaint;Repaint the window after this operation

Description: This function inserts a combo-box.

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