User`s guide
6 Lay Out a GUIDE GUI
The View button displays the callback, if there is one, in an editor. If you
have not yet saved the GUI, GUIDE prompts you to save it.
• Open the Property Inspector, where you can change all menu properties
except callbacks, by clicking the More options button. For detailed
information about these properties, see Uicontextme nu Properties .
Associate the Context Menu with an Object
1 In the Layout Editor, select the object for which you are defining the
context menu.
2 Use the Property Inspector to set this object’s UIC ontextMenu property to
the nam e of the desired context menu.
The following figure show s the
UIContextMenu property for the axes object
with
Tag property axes1.
In the GUI code 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 “M enu Item” on page 8-59 for information on defining
the syntax.
6-120