Specifications

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');