AddItem
This function adds an item to a widget. Choiceboxes, listboxes, and tabbers will display their items and allow you to select one.
Syntax
- int AddItem(const std::string& text, const bool 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.