MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Podręcznik Użytkownika Strona 234

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 759
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 758 759

Komentarze do niniejszej Instrukcji

Brak uwag