MATLAB Creating Graphical User Interfaces

(ff) #1
To display the & character in a label, 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.


  • To enable multiple-line input, specify the Max and Min properties so that their
    difference is greater than 1. For example, Max = 2, Min = 0. Max default is 1 , Min
    default is 0. MATLAB software wraps the displayed text and adds a scroll bar if
    necessary. On all platforms, when the user enters a multiline text box via the Tab key,
    the editing cursor is placed at its previous location and no text highlights.


If Max-Min is less than or equal to 1, the edit text component allows only a single line
of input. If you specify a component width that is too small to accommodate the
specified text, MATLAB displays only part of that text. The user can use the arrow keys
to move the cursor through the text. On all platforms, when the user enters a single-

6 Lay Out a UI Using GUIDE

Free download pdf