Creating Graphical User Interfaces Previous page   Next Page

Setting Up the Close Confirmation Dialog

To set up the dialog, do the following:

  1. Select New from the File menu in the GUIDE Layout Editor.
  2. In the GUIDE Quick Start dialog, select the Modal Question Dialog template and click OK.
  3. Right-click the static text, Do you want to create a question dialog?, in the Layout Editor and select Property Inspector from the pop-up menu.
  4. Scroll down to String in the Property Inspector and change the String property to Are you sure you want to close?
  5. Select Save from the File menu and type modaldlg.fig in the File name field.

The GUI should now appear as in the following figure.

finished version of the GUI


Previous page  View Completed Layouts and Their GUI M-Files Setting Up the GUI with the Close Button Next page

© 1994-2005 The MathWorks, Inc.