Creating Graphical User Interfaces |
How the GUI and Dialog Work
This section describes what occurs when you click the Close button on the GUI:
handles
structure with the command
This is an example of calling a GUI with a property value pair. In this case, the figure property is 'Title'
, and its value is the string 'Confirm Close'
. Opening modaldlg
with this syntax displays the text "Confirm Close" at the top of the dialog. See Input and Output Arguments for more information about the options for calling a GUI.
'Position'
obtained from the GUI that calls it.
uiwait
command, which causes the dialog to wait for the user to click the Yes button or the No button, or click the close box (X
) on the window border.
handles
structure
uiresume
to return control to the opening function where uiwait
is called.
Yes
or No
as an output argument, and deletes the dialog with the command
Yes
or No
. If the answer is 'No'
, it does nothing. If the answer is 'Yes'
, the close button callback closes the GUI with the command
Running the GUI with the Close Button | GUI Applications |
© 1994-2005 The MathWorks, Inc.