MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Specifiche Pagina 117

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 216
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 116
Creating Menus — The Menu Editor
3-67
You can also
Select the
Separator above this item check box to display a separator above
the menu item when the menu is first opened.
Select the
Check mark this item check box to display a check next to the
menu item when the menu is first opened.
A check is particularly useful to indicate the current state of the menu item.
For example, suppose you have a menu item called
Show axes that toggles
the visibility of an axes between visible and invisible each time the user
selects the menu item. If you want a check to appear next to the menu item
when the axes are visible, add the following code to the callback for the
Show
axes
menu item:
if strcmp(get(gcbo, 'Checked'),'on')
set(gcbo, 'Checked', 'off');
else
set(gcbo, 'Checked', 'on');
Vedere la pagina 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 215 216

Commenti su questo manuale

Nessun commento