Specifications
3 Laying Out GUIs and Setting Properties
3-58
Defining Menus for the Menu Bar
When you create a drop-down menu, MATLAB adds its title to the figure menu
bar. You can then create menu items for that menu. Each menu item can have
a cascading menu, also known as a submenu, and these items can have
cascading menus, and so on.
Creating a Menu
The first step is to click the New Menu tool to create a drop-down menu.
Specifying Menu Properties
Click on the menu title, Untitled 1 in the picture above, to display fields that
allow you to set the
Label, Tag, Accelerator, Separator, Checked, and Enable
menu properties as well as specify the
Callback string. GUIDE applies any
property changes immediately. Click
More options to display the Property
Inspector where you can edit all the properties for the selected item.
The
View button displays the callback subfunction in an editor. See “Menu
Callbacks” on page 3-63 for more information.