# The Menueditor

The menueditor is opened by selecting "Edit" in the main menubar and hereafter selecting the "Edit Menus..." item. It is still under development, so you might like to see the list of known bugs and shortcomings.

The left part of the window is for managing the menus as a whole, while the right side is for managing the individual items in each menu.

A demo of the menu is shown in the top left corner of your screen. Do not click on this menu as it is only for visual demonstration. Use the arrow keys in the menueditor window to select different items in the menu.

## Managing Menus

The left part of the window is for managing the menus as whole entities. The listbox shows the widget names of all existing menus. The one selected here will be shown in the top left hand corner of the screen and can be editted in the right hand side of the menu editor window. It is up to the user to name the menus so that they comply with correct Tcl/Tk syntax. The file demo/newmenudemo.ui is a good example of how to do this.

- New menus are added with the New button
- Copy a menu (non-recursively) with the Copy button
- Delete a menu with the Remove button
- If for some reason the demo menu gets hidden, it can be redisplayed with the View/Post button

## Menu Properties

The overall properties of a menu can be edited with the same tools as used for other widgets (but only when the menueditor window is open). The window for editting widget properties is obtained either by pressing Ctrl-w or by selecting the "Widget Properties..." item in the "Edit" menu in the main window. Common properties such as font and background color can be changed quickly from the toolbar in the main window.

## Managing Items

The right part of the menueditor window shows the available properties for the selected item in the selected menu. These can be changed by editing the values and pressing the Update button or the Return key on your keyboard. The type should always be set first as it resets all the other values. Other things that one can do are:

- Add a new menu-item to the end of the menu with the Add button or by pressing the down arrow key when the last item is selected.
- Insert a new menu-item just before the selected item by pressing the Insert button or the Insert button on your keyboard.
- Select another item by using the arrow keys on your keyboard.
- Delete an item by pressing the Delete button. When the focus is not in an entry, the Delete button on the keyboard also does this.