Specifications

3 Laying Out GUIs and Setting Properties
3-68
end
This changes the value of the Checked property of the menu item from on to
off or vice versa each time a user selects the menu item.
If you set the axes to be visible when a user first opens the GUI, make sure
to select the
Check mark this item check box in the Menu Editor, so that a
check will appear next to the
Show axes menu item initially.
Select the
Enable this item check box so that the user can select this item
when the menu is first opened. If you deselect this option, the menu item
appears dimmed when the menu is first opened, and the user cannot select it.
Click the
More options button to open the Property Inspector where you can
change all uimenu properties.
Associating the Context Menu with an Object
In the Layout Editor, select the object for which you are defining the context
menu. Use the Property Inspector to set this object’s
UIContextMenu property
to the desired context menu.
In the GUI M-file, complete the callback subfunction for each item in the
context menu. Each callback executes when a user selects the associated
context menu item. See “Menu Callbacks” on page 3-63 for information on
defining the syntax.