ListBox Class
Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI
Vertical scrollable list. ListBox.AddItem returns a handle whose Clicked event you subscribe to.
class ListBox : public Widget {};
Constructors
ListBox(Widget parent)
ListBox(const Widget& parent);
Create a list box inside parent.
| Parameter | Type | Description |
|---|---|---|
parent | Widget | Containing widget. |
Methods
AddItem(string text)
ListBoxItem AddItem(const std::string& text);
Append an item.
| Parameter | Type | Description |
|---|---|---|
text | string | Row text. |
Returns ListBoxItem: Handle for subscribing to the row's ListBoxItem.Clicked event.
Clear()
void Clear();
Remove every item.