MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guía de usuario Pagina 477

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 759
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 476
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
Vista de pagina 476
1 2 ... 472 473 474 475 476 477 478 479 480 481 482 ... 758 759

Comentarios a estos manuales

Sin comentarios