User`s guide
Add Components to a Programmatic GUI
Property Values Description
String
String. C an be a cell
array or character array or
strings.
Component label. For list
boxes and pop-up menus
it is a list of the items . 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.
Style pushbutton,
togglebutton,
radiobutton, chec kbox ,
edit, text, slider,
listbox, popupmenu.
Default is
pushbutton.
Type of user interface
control object.
TooltipString
String Text of the tooltip associated
with the push tool or toggle
tool.
Units pixels, centimeters,
characters, inches,
normalized, points,
Default is
pixels.
Units of measurement used
to interpret position vector
Value
Scalar or vector Value of the component.
Interpretation depends on
the
Style property.
For a complete list of properties and for more information about the properties
listed in the table, see Uicontrol Properties docum entation.
Check Box
The following statement creates a check box with handle cbh.
11-15