MATLAB Creating Graphical User Interfaces

(Barry) #1
Create Menus for GUIDE UIs

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-103. See “How to
    Update a Menu Item Check” on page 8-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

Free download pdf