User`s guide

Add Components to a Programmatic GUI
Note Create your own i con with the icon editor described in “Icon Editor”
on page 15-63. See
ind2rgb for information on converting a matrix X and
corresponding colormap, i.e., an
(X, MAP) image, to RGB (truecolor) format.
Radio Button
The following statement creates a radio button with handle rbh:
rbh = uicontrol(fh,'Style','radiob utton',...
'String','Indent nested functions.',...
'Value',1,'Position',[30 20 150 20]);
The firs
targument,
fh, specifies the handle o f the parent figure. You can also
specify
the parent as a panel or button g roup. Use a button group to manage
exclus
ive selection of radio buttons and toggle buttons. See “Panel” on page
11-35 and
“Button Group” on page 11-36 for more information.
The
Sty
le
property, radi obut ton, specifies the user interface control a s a
radio
button.
The
St
ring
property labels the radio button as Indent nested functions.
The ra
dio button allows only a single line of text. If you specify more than
one l
ine, only the first line is shown. If you specify a component w idth that is
too s
mall to accommodate the specified
String, M ATLAB software truncates
the s
tring with an ellipsis.
11-27