Creating Graphical User Interfaces Previous page   Next Page

Example: Using the Modal Dialog to Confirm an Operation

This example illustrates how to use the modal dialog GUI together with another GUI that has a Close button. Clicking the Close button displays the modal dialog, which asks users to confirm that they really want to proceed with the close operation.

The following figure illustrates the dialog positioned over the GUI application, awaiting the user's response.

confrim close  modal dialog box

The example is presented in the following sections:


Previous page  Using Modal Figure Windows View Completed Layouts and Their GUI M-Files Next page

© 1994-2005 The MathWorks, Inc.