Adding items
To add items to the select, we can use the following function.
ui_item_add (control, item);
Return: Real
Argument control is the handle of ui_select_create (...);
function, the item is a string of items you want to add.
selectCountry = ui_select_create (32, 64, ui_default, ui_default, "Country");
ui_item_add (selectCountry, "Indonesia");
ui_item_add (selectCountry, "Malaysia");
ui_item_add (selectCountry, "Thailand");
ui_item_add (selectCountry, "Vietnam");
ui_item_add (selectCountry, "Singapore");
The line of code above is used to add items to the selectCountry select.