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

  • 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 233
6 Lay Out a GUIDE GUI
The View button displays the callback, if there is one, in an editor. If you
have not yet saved the GUI, GUIDE prompts you to save it.
Open the Property Inspector, where you can change all menu properties
except callbacks, by clicking the More options button. For detailed
information about these properties, see Uicontextme nu Properties .
Associate the Context Menu with an Object
1 In the Layout Editor, select the object for which you are defining the
context menu.
2 Use the Property Inspector to set this object’s UIC ontextMenu property to
the nam e of the desired context menu.
The following figure show s the
UIContextMenu property for the axes object
with
Tag property axes1.
In the GUI code file, complete the callback subfunction for each item in the
context menu. Each callback executes when a user selects the associated
context menu item. See “M enu Item” on page 8-59 for information on defining
the syntax.
6-120
Vue de la page 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 758 759

Commentaires sur ces manuels

Pas de commentaire