Popup menu



Hi,

I've created a popup menu but I'd like to create sub-menu into it. Is there someone who can help me?

That's the code to create the popup  menu:

Gtk::Menu m_Menu_Popup;

Gtk::Menu::MenuList& menulist = m_Menu_Popup.items();

menulist.push_back( Gtk::Menu_Helpers::MenuElem("_test" ,sigc::mem_fun(*this, &MyArea::PopupTest) ) ); menulist.push_back( Gtk::Menu_Helpers::MenuElem("_test2",sigc::mem_fun(*this, &MyArea::PopupTest2) ) ); menulist.push_back( Gtk::Menu_Helpers::MenuElem("_ColorGreen",sigc::mem_fun(*this, &MyArea::ColorGreen) ) );



thank you

mick



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]