User`s guide

12 Code a Programmatic GUI
Examples: Program GUI Components
In this section...
“Program User Interface Controls” on page 12-20
“Program Panels and Button Groups” on page 12-28
“Program Axes” on page 12-31
“Program ActiveX Controls” on page 12-34
“Program Menu Items” on page 12-34
“Program Toolbar Tools” on page 12-37
Program User Interface Controls
The examples assume that callback properties are specified using function
handles, enabling MATLAB software to pass arguments
hObject,whichisthe
handle of the component for which the event was triggered, and
eventdata.
See “Specify Callbacks in Function Calls” on page 12-11 for more information.
“Check Box” on page 12-21
“Edit Text” on page 12-21
“List Box” on page 12-23
“Pop-Up Menu” on page 12-24
“Push Button” on page 12-25
“Radio Button” on page 12-26
“Slider” on page 12-26
“Toggle Button” on page 12-27
Note See “Types of GUI Components” on page 11-9 for descriptions of these
components. See “Add User Interface Controls to a Programmatic G UI” on
page 11-13 for information about adding these components to your GUI.
12-20