#include <nana/gui.hpp>
#include <nana/gui/widgets/button.hpp>
#include <nana/gui/widgets/menu.hpp>
#include <iostream>
{
}
int main()
{
using namespace nana;
fm.
caption(L
"Popup the menu when right clicking the button");
;
mobj.
append (
"Item 0", &on_menu_item);
mobj.append_splitter();
mobj.append ( "Item 1", &on_menu_item);
;
btn.caption("Popup Menu");
;
;
fm.show();
#ifdef NANA_AUTOMATIC_GUI_TESTING
1, 2, [&btn]() {
click(btn); }
#endif
);
}