lecui 1.0.0-alpha.20
lecui C++ user interface library
|
Form menu. More...
#include <form_menu.h>
Public Member Functions | |
form_menu (form &fm) | |
Constructor. More... | |
~form_menu () | |
Destructor. | |
bool | add (const std::string &text, const std::string &tooltip, const std::vector< form_menu_item > &items, std::string &error) |
Add form menu label. More... | |
Form menu.
Menu is added in the title bar to the right of the form caption.
liblec::lecui::form_menu::form_menu | ( | form & | fm | ) |
Constructor.
fm | A reference to the form. |
bool liblec::lecui::form_menu::add | ( | const std::string & | text, |
const std::string & | tooltip, | ||
const std::vector< form_menu_item > & | items, | ||
std::string & | error | ||
) |
Add form menu label.
text | The label text, e.g. "File". |
tooltip | The (optional) tooltip text. |
items | The items to be displayed when the label is selected. |
error | Error information. |