User`s guide

Use a Modal Dialog Box to C onfirm an Operation (GUIDE)
When you click the Close button on the GUI, the m odal dialog box opens, as
shown in the following figure.
Clickin
gtheYes button closes both the close dialog and the GUI that calls
it. Clic
king the No button closes just the dialog.
How the
Close-Confirmation GUIs Work
This s
ection describes what occurs when you click the Close button on the
GUI:
1 User c
licks the Close button. Its callback then:
Gets
the current position of the G UI from the
handles structure with
the c
ommand:
pos_size = get(handles.figure1,'Po sition')
Cal
ls the modal dialog box with the command:
user_response = modaldlg('Title','Confirm Close');
10-103