import com.ibm.egl.rui.widgets.List; import com.ibm.egl.rui.widgets.TextField; import egl.ui.rui.Event; Handler MyHandler Type RUIHandler { initialUI = [myList, myTextField]} myList List { values = ["one", "two", "three", "four"], selection = 2, onChange ::= changeFunction }; myTextField TextField {text = myList.values[myList.selection]}; Function changeFunction(e Event in) myTextField.text = myList.values[myList.selection]; end end
The first string in the array is at position 1, not 0.
Initially, only the last strings are displayed.
In Internet Explorer 6, if you do not set the size property, the widget is displayed as a combination of a text box and list box.
For more information about other supported properties and functions, see "Widget properties and functions."
import com.ibm.egl.rui.widgets.List;