User`s guide

6 Lay Out a GUIDE GUI
Note You do not need to use the Toolbar Editor if you simply want your GUI
to have a standard figure toolbar. You can do this by setting the figure’s
ToolBar property to 'figure',asfollows:
1 Open the GUI in GUIDE.
2 From the View menu, open Property Inspector.
3 Set the ToolBar property to 'fi gure ' using the drop-down menu.
4 Save the figure
If you later want to remove the figure toolbar, set the
ToolBar property to
'auto' and resave the GUI. Doing this w ill not remove or hide your custom
toolbar, should the GUI have one. See “Create Toolbars for Programmatic
GUIs” o n page 11-88 fo r more information about making toolbars manually.
If you w ant users to be able to dock and undock a GUI on the MATLAB
desktop, it m ust have a toolbar or a menu bar, which can either be the
standard ones or ones you create in GUIDE. In addition, the figure property
DockControls must be turned on. For details, see “How Menus Affect Figure
Docking” on page 6-103.
Use the Toolbar Editor
The Toolbar Editor contains three main parts:
The Toolbar Layout preview area on the top
The T o ol Palette on the left
Two tabbed property panes on the right
6-124