MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Betriebsanweisung Seite 567

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 759
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 566
Create Menus for a Programmatic GUI
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
isthehandleoftheparentfigure.
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 GUI displays the standard menu bar, the new m enu is added to it.
If your GUI does not display the standard menu bar, MATLAB software
creates a menu bar if none exists and then adds the menu to it.
11-79
Seitenansicht 566
1 2 ... 562 563 564 565 566 567 568 569 570 571 572 ... 758 759

Kommentare zu diesen Handbüchern

Keine Kommentare