Re: [gtkmm] how to right align a MenuItem



Here is some code 4 you:

       // Assemble
        MenuList& menuBarItems = m_menuBar->items();

        menuBarItems.push_front(MenuElem("_Help",
Menu::AccelKey("<control>h"), *helpMenu));
        menuBarItems.front().set_right_justified();
        menuBarItems.push_front(MenuElem("_Options",   
Menu::AccelKey("<control>o"), *m_optionsMenu));
        menuBarItems.push_front(MenuElem("_View",      
Menu::AccelKey("<control>v"), *m_viewMenu));
        menuBarItems.push_front(MenuElem("_File",      
Menu::AccelKey("<control>f"), *m_fileMenu));



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