MATLAB Creating Graphical User Interfaces

(Barry) #1
Add Components to the GUIDE Layout Area

button to the right of the property name to open the Property Inspector editor.

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

If the width of the component is too small to accommodate one or more of the specified
strings, MATLAB software truncates those strings 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:

Free download pdf