MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Uživatelská příručka Strana 477

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 759
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 476
1 2 ... 472 473 474 475 476 477 478 479 480 481 482 ... 758 759

Komentáře k této Příručce

Žádné komentáře