Class UICOMBOBOX

Name

UICOMBOBOX  --  Class of combo box.

Synopsis

 UIComboBox([<values>],[<defaultItem>])	--> UIComboBox object
 
 

Description

Class UIComboBox.

Attributes

<className> - Class name. Value should be "UIComboBox".
<list> - List of values. Type: array of strings.

Methods

GETVALUE Get selected string from combo box.
SETLIST Fill list of values.
SETVALUE Select element by default from list.

Method UICOMBOBOX:GETVALUE()

 getValue()	--> <sValue>

Method UICOMBOBOX:SETLIST()

 setList(<values>)

Method UICOMBOBOX:SETVALUE()

 setValue(<value>)

Example:

 cb1 := UIComboBox({"cat","dog"},"dog")
 cb2 := UIComboBox()
 cb2:setList({"apple", "banana"})
 cb2:setValue(1)
 

Platforms

No dependies of platform.