MATLAB Creating Graphical User Interfaces

(ff) #1
Check Box

To create a check box with label Display file extension that is initially checked, as
shown in this figure:


  • Specify the check box label by setting the String property to the desired label, in this
    case, Display file extension.


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.

The check box accommodates only a single line of text. If you specify a component
width that is too small to accommodate the specified String property value, MATLAB
software truncates the value with an ellipsis.

6 Lay Out a UI Using GUIDE

Free download pdf