MATLAB Creating Graphical User Interfaces

(Barry) #1

6 Lay Out a UI Using GUIDE



  • Specify the toggle button label by setting its String property to the desired label, in
    this case, Left/Right Tile.


To display the & character in a label, 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.

The toggle button accommodates only a single line of text. If you specify more than
one line, only the first line is shown. If you create a toggle button that is too narrow to
accommodate the specified String, MATLAB software truncates the string with an
ellipsis.
Free download pdf