MATLAB Creating Graphical User Interfaces

(ff) #1

You can also modify menu items in these ways:



  • Display a separator above the menu item by checking Separator above this item.

  • Display a check next to the menu item when the menu is first opened by checking
    Check mark this item. A check indicates the current state of the menu item. See the
    example in “Add Items to the Context Menu” on page 6-89. See “How to Update a
    Menu Item Check” on page 7-24 for a code example.

  • Enable this item when the menu is first opened by checking Enable this item. This
    allows the user to select this item when the menu is first opened. If you clear this
    option, the menu item appears dimmed when the menu is first opened, and the user
    cannot select it.

  • Specify a Callback for the menu that performs the action associated with the menu
    item. If you have not yet saved the UI, the default value is %automatic. When you
    save the UI, and if you have not changed this field, GUIDE automatically creates a
    callback in the code file using a combination of the Tag field and the UI file name. The


Create Menus for GUIDE Apps
Free download pdf