Nana ++ Library  
An open-source C++ framework project
The Nana Programmer's Guide 
nana::gui::menubar

Description

a menubar widget is a toolbar at the top of window for popuping menus.

Model of

Widget Window 

Public base classes

class widget_object<widget_tag, DrawerTrigger>: public widget

Members

menubar() The default constructor.
menubar(window wd) Create a menubar at the top of specified window.
void create(window wd) Create a menubar at the top of specified window.
menu& push_back(const nana::string& text) Appends an item.
menu& at(size_t index) const Gets the menu specified by index.
size_t length() const Gets the number of menus.

File

nana/gui/widgets/menubar.hpp

Notes

1.  The widget sets the shortkey that the a character behind the first of & in text, for the item. e.g. "File(&F)" or "&File".

See also

menu.


Move to The Nana Programmer's Guide Main Page