MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guida Utente Pagina 477

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 759
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la 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
Vedere la pagina 476
1 2 ... 472 473 474 475 476 477 478 479 480 481 482 ... 758 759

Commenti su questo manuale

Nessun commento