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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 500
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 403
10 Lay Out a Programmatic UI
10-72
The following statements add two menu subitems to Item 1, assign each subitem a
keyboard accelerator, and disable the first subitem.
seh1 = uimenu(eh1,'Label','Choice 1','Accelerator','C',...
'Enable','off');
seh2 = uimenu(eh1,'Label','Choice 2','Accelerator','H');
The Accelerator property adds keyboard accelerators to the menu items. Some
accelerators may be used for other purposes on your system and other actions may result.
The Enable property disables the first subitem Choice 1 so a user cannot select it when
the menu is first created. The item appears dimmed.
Note After you have created all menu items, set their HandleVisibility properties off by
executing the following statements:
menuhandles = findall(figurehandle,'type','uimenu');
menuhandles.HandleVisibility = 'off';
See the section, “Menu Item”, for information about programming menu items.
Przeglądanie stron 403
1 2 ... 399 400 401 402 403 404 405 406 407 408 409 ... 499 500

Komentarze do niniejszej Instrukcji

Brak uwag