MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Spécifications Page 117

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 216
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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');
Vue de la page 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 215 216

Commentaires sur ces manuels

Pas de commentaire