A Label component that displays a popup menu when right clicked. More...
Inherits Label.
Public Member Functions | |
void | addOption (const String &newOption, const String &toolTip=String()) |
Adds an option to the popup menu. More... | |
void | clearOptions () |
Clears all options. More... | |
int | getCurrentIndex () const noexcept |
Returns the currently selected Index. More... | |
void | setItemIndex (int index, NotificationType notify=sendNotification) |
Sets the label text value using the index. More... | |
A Label component that displays a popup menu when right clicked.
|
inline |
Adds an option to the popup menu.
|
inline |
Clears all options.
|
inlinenoexcept |
Returns the currently selected Index.
void setItemIndex | ( | int | index, |
NotificationType | notify = sendNotification |
||
) |
Sets the label text value using the index.
It triggeres a labelChanged notification