User`s guide
Add Components to the GUI
Component Icon Description
Button Group
Button groups are like panels but are used to
manage exclusive selection behavior for radio
buttons and toggle buttons.
Toolbar You can create toolbars containing push buttons
and toggle buttons. Use the GUIDE Toolbar
Editor to create toolbar buttons. Choose between
predefined buttons, such as Save and Print,and
buttons which you customize with your own icons
and callbac ks.
ActiveX
®
Component
ActiveX components enable you to display ActiveX
controls in your GUI. They ar e a vailable only on
the Micros oft
®
Windows
®
platform.
An ActiveX control can be the child only of a
figure, i.e., of the G UI itself. It cannot be the child
of a panel or button group.
See “ActiveX Control” on page 8-49 in this
document for an example. See “Creating COM
Objects” to learn m ore about ActiveX controls.
A Working GUI with Many Components
To see what GUI components look like and how they work, you can open in
GUIDE and run an example GUI that demonstrates more than a dozen of
them. When you run the GUI, all its component callbacks tell your actions
using the GUI and some also update the plot it displays. The GUI, called
controlsuite, includes all the components listed in the table in the previous
section, “Available Components” on page 6-20, except for ActiveX controls. It
consists of a F IG-file (
controlsuite.fig) that opens in GUIDE, and a code
file (
controlsuite.m) that opens in the MATLAB Editor.
View the controlsuite Layout and GUI Code File
If you are reading this in the MATLA B Help browser, click the follo wing
links to display the GUIDE Layout Editor and the MATLAB Editor with a
completed version of the
controlsuite example.
6-23