Creating a menu bar
To create a menu bar for a frame displayed in the object editor, select
the Edit menu bar option on the Edit menu.
The Menu Bar Editor will appear with a large listbox for menu and item
names, fields for editing text, and buttons below it for creating
and deleting items.
- Menus
- List of menus and menu items.
- Name
- Contains the name of a new or currently
selected menu item.
- Id
- Allows the user to specify the name of the
menu item identifier, as used in a wxMenu::Append call.
These names will be associated with integers automatically
by wxBuilder. If the user leaves this field blank, wxBuilder
will generate a suitable identifier.
- Help string
- Allows the user to specify a
help string which will appear on the status line when
the mouse cursor is over that menu item (Motif and Windows only).
- New item
- Creates an item at the same level as the
currently selected menu item. So, if the currently
selected item is a menu called Edit, pressing this
button will create a new menu, not an item on the Edit
menu. Note that you must fill in the fields before you
press the button.
- New child
- Creates a child of the currently selected menu
item, i.e. it creates a new submenu. So to create the first item
of the Edit menu, select the Edit item and press
this button. Note that you must fill in the fields before you
press the button.
- New separator
- Creates a separator after the selected menu item.
- Delete item
- Deletes the currently selected menu item.
- Save item
- Saves the displayed values in the currently selected
menu item.
Hotkeys
Deleting a menu bar
Hotkeys
To specify a hotkey, insert an ampersand (&) before the letter
which serves as the hotkey (Windows and Motif). For example,
E&xit.
Deleting a menu bar
To remove the entire menu bar, delete the object in the usual
way from the object editor (select the menu bar object and choose
the Delete object option from the Edit menu).
Alternatively, delete all the menus from the menu bar editor.