AddItem
This function adds an item to a widget. Choiceboxes, listboxes, and tabbers will display their items and allow you to select one.
Syntax
- number AddItem(string text, boolean selected=false)
Parameters
- text: text to display on the widget item.
- selected: if set to true the item will be automatically selected.
Returns
Returns the index of the new item.