User`s guide

Add Components to a Programmatic GUI
Component Function Description
grouptomanagemutuallyexclusive
radio buttons.
Toolbar Buttons
uitoolbar,
uitoggletool,
uipushtool
Non-modal GUIs can display toolbars,
whichcancontainpushbuttonsand
toggle buttons, identified by custom
icons and tooltips.
Components are sometimes referred to by the name of the function used to
create them. For example, a push button i s created using the
uicontrol
function, and it is sometimes referred to as a uicontrol. A panel is created
using the
uipanel function and may be referred to as a uipanel.
Add User Interface Controls to a Programmatic GUI
Use the uicontrol function to create user interface controls. These include
push buttons, toggle buttons, sliders, radio buttons, edit text controls, static
text controls, pop-up menus, check boxes, and list boxes.
Note See “Types of GUI Components” on page 11-9 for descriptions of these
components. See “Program User Interface Controls” on page 12-20 for basic
examples of programming these components.
Asyntaxfortheuicontrol function is
uich = uicontrol(parent,'PropertyN ame',PropertyValue,...)
where uich is the h andle of the resulting user interface control. If you do
not specify
parent, the com ponent parent is the current figure as specified
by the root
CurrentFigure property. See the uicontrol reference page for
other valid syntaxes.
Subsequent topics describe commonly used p roperties of user interface
controls and offer a simple example for each kind of control:
“Commonly U sed Properties” on page 11-14
11-13