Specifications
Example: Using the Modal Dialog to Confirm an Operation
4-45
4 When a user clicks one of the two push buttons, the callback for the push
button
- Updates the output field in the
handles structure
- Executes
uiresume to return control to the opening function where uiwait
is called.
5 The output function is called, which returns the string Yes or No as an output
argument, and deletes the dialog with the command
delete(handles.figure1)
6 When the GUI with the Close button regains control, it receives the string
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
delete(handles.figure1)