MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guide de l'utilisateur Page 111

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 759
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 110
GUI Options
GUIDE also adds a callback whenever you edit a callback routine from the
Layout Editor’s right-click context menu and when you add menus to the
GUI using the Menu E ditor.
See “Customizing Callbacks in GUIDE” on page 8-15 for general information
about callbacks.
Note This option is available only if you first select the Generate FIG-file
and MATLAB file option.
GUI Allows Only One Instance to Run (Singleton)
This option allows you to select between two behaviors for the GUI figure:
Allow M ATLAB software to display only one instance of the GUI at a time.
Allow MATLAB software to display multiple instances of the GUI.
If you allow only one instance, the software reus es the existing GU I figure
whenever the command to run the GUI is issued. If a GUI already exists, the
software brings it to the foreground rather than creating a new figure.
If you clear this option, the software creates a new GUI figure whenever you
issue the command to run the GUI.
Even if you allow only one instance of a GUI to run at once, initialization can
take place each time you invoke it from the command line. For example, the
code in an
OpeningFcn will run each time a GUIDE GUI runs unless you take
steps to p revent it from doing so. Adding a flag to the
handles structure is one
way to control such behavior. You can do this in the
OpeningFcn, which can
run initialization code if this flag doe sn ’t ye t exist and skip that code if it does.
Note This option is available only if you first select the Generate FIG-file
and MATLAB file option.
5-13
Vue de la page 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 758 759

Commentaires sur ces manuels

Pas de commentaire