Skip to main content

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.

ParameterTypeDescription
parentWidgetContaining widget.

Methods​

AddItem(string text)​

ListBoxItem AddItem(const std::string& text);

Append an item.

ParameterTypeDescription
textstringRow text.

Returns ListBoxItem: Handle for subscribing to the row's ListBoxItem.Clicked event.

Clear()​

void Clear();

Remove every item.