MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Spécifications Page 133

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 180
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 132
Launching a Dialog to Confirm an Operation
5-9
Launching a Dialog to Confirm an Operation
This example illustrates how to display a dialog when users attempt to close a
GUI. The purpose of the dialog is to force the user to confirm that they really
want to proceed with the close operation.
The following picture illustrates the dialog positioned over the GUI
application, awaiting the user’s response.
Dialog Requirements
You want to protect users from unintentionally closing a GUI application by
displaying a confirmation dialog when they press the
Close button on the main
application window.
You want the dialog to:
Be launched by the application’s
Close button.
Ask the user to confirm the close operation (i.e., respond yes or no).
Block MATLAB execution until the user responds.
Be modal to maintain focus while there is a pending operation.
Vue de la page 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 179 180

Commentaires sur ces manuels

Pas de commentaire