6 Lay Out a UI Using GUIDE
1 Open the UI in GUIDE.
2 From the View menu, open Property Inspector.
3 Set the ToolBar property to 'figure' 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 UI. Doing this will not remove or hide your custom toolbar. See “Create
Toolbars for Programmatic UIs” on page 10-79 for more information about making
toolbars manually.
If you want users to be able to dock and undock a UI window on the MATLAB desktop,
it must 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-92.
Use the Toolbar Editor
The Toolbar Editor contains three main parts:
- The Toolbar Layout preview area on the top
- The Tool Palette on the left
- Two tabbed property panes on the right