MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Instrukcja Użytkownika Strona 402

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 500
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 401
10 Lay Out a Programmatic UI
10-70
Menu Bar Menu
The following statements create a menu bar menu with two menu items.
mh = uimenu(fh,'Label','My menu');
eh1 = uimenu(mh,'Label','Item 1');
eh2 = uimenu(mh,'Label','Item 2','Checked','on');
fh is the handle of the parent figure.
mh is the handle of the parent menu.
The Label property specifies the text that appears in the menu.
The Checked property specifies that this item is displayed with a check next to it when
the menu is created.
If your UI displays the standard menu bar, the new menu is added to it.
If your UI does not display the standard menu bar, MATLAB creates a menu bar if none
exists and then adds the menu to it.
Przeglądanie stron 401
1 2 ... 397 398 399 400 401 402 403 404 405 406 407 ... 499 500

Komentarze do niniejszej Instrukcji

Brak uwag