MATLAB Creating Graphical User Interfaces

(ff) #1
To display the & character in a menu item, use two & characters. The words remove,
default, and factory (case sensitive) are reserved. To use one of these as a label,
prepend a backslash character (\). For example, \remove yields remove.

If the width of the component is too small to accommodate one or more of the menu
items, MATLAB truncates those items with an ellipsis.


  • To select an item when the component is created, set Value to a scalar that indicates
    the index of the selected list item, where 1 corresponds to the first item in the list. If
    you set Value to 2 , the menu looks like this when it is created:


6 Lay Out a UI Using GUIDE

Free download pdf