class ui.ComboBox
class ComboBox: ui.Widget {
// fields
size_t readonly m_itemCount;
// properties
bool autoget property m_isEditable;
string_t bindable autoget property m_editText;
string_t autoget property m_placeholderText;
uint_t autoget property m_backgroundColor;
string_t indexed property m_itemText(size_t index);
variant_t indexed property m_itemData(size_t index);
string_t indexed property m_itemToolTip(size_t index);
size_t bindable autoget property m_currentIndex;
string_t const bindable property m_currentText;
variant_t bindable property m_currentData;
// events
event m_onReturnPressed();
// construction
construct();
construct(
ui.ComboItem const* itemArray,
size_t count
);
destruct();
// methods
void adjustSizeToContents();
size_t addItem(
string_t text,
variant_t data = null
);
size_t addItemSetCurrent(
string_t text,
variant_t data = null
);
size_t insertItem(
size_t index,
string_t text,
variant_t data = null
);
size_t insertItemSetCurrent(
size_t index,
string_t text,
variant_t data = null
);
bool removeItem(size_t index);
void setItems(
ui.ComboItem const* itemArray,
size_t count
);
void clear();
void selectAllEditText();
size_t findData(variant_t data);
};