User`s guide
6 Lay Out a GUIDE GUI
The GUI returns the text string Yes or No, depending on which button you
click.
Select this template if you want your GUI to return a string or to be modall.
Modal GUIs are blocking, which means that the current code file stops
executing u ntil the GUI restores execution; this means that the user cannot
interact with other MATLAB windows until one of the buttons is clicked.
Note Modal dialog bo x es (figures with WindowStyle set to 'mod al') cannot
display menus or toolbars.
To view the code for these capabilities, open the template in the Layout Editor
and click the Editor button
on the toolbar. See “Use a Modal Dialog Box
to Confirm an O peration (GUIDE )” on page 10-98 for an example of using
this template with another GUI. Also see the figure
WindowStyle property
for more information.
6-14