User`s guide
11 Lay Out a Programmatic GUI
Note After you have created a toolbar and its tools, set their
HandleVisibility properties of f by executing statements similar to the
following:
set(toolbarhandle,'HandleVisibility','o ff')
toolhandles = get(toolbarhandle,'Children');
set(toolhandles,'HandleVisibility', 'off')
Display and Modify the Standard Toolbar
You can choose whether or not to display the MATL AB standard toolbar on
your GU I. You can also add or delete tools from the standard toolbar.
Standard figure toolbar
Display the Standard Toolbar
Use the figure Toolbar property to display or hide the MATLAB standard
toolbar. Set
Toolbar to figure to display the standard toolbar. Set Toolbar
to none to hide it.
set(fh,'Toolbar','figure'); % Display the standard toolb ar
set(fh,'Toolbar','none'); % Hide the standard toolbar
In these statements, fh is the handle of the figure.
The default figure
Toolbar setting is a uto. This setting displays the figure
toolbar, but removes it i f y ou add a user interface control (uicontrol) to the
figure.
11-92