Specifications
Creating Menus – The Menu Editor
3-19
Creating Menus – The Menu Editor
MATLAB enables you to create two kinds of menus:
•Menubar objects – menus displayed on the figure menubar
•Context menus – menus that pop up when users right-click on graphics
objects
You create both types of menus using the Menu Editor, which you can access
from the
Menu Editor item on the Tool menu and from the Layout Editor
toolbar.
These menus are implemented with
uimenu and uicontextmenu objects.
Defining Menus for the Menubar
When you create a menu, MATLAB adds it to the figure menubar. You can then
create menu items for that menu. Each item can also have submenu items, and
these items can have submenus, and so on.
Create a new menu
Create a new menu item
Create a new context menu
Delete selected item
Move selected menu item