Specifications
1 Getting Started with GUIDE
1-26
User Interface Controls
The Layout Editor component palette contains the user interface controls that
you can use in your GUI. These components are MATLAB uicontrol objects and
are programmable via their Ca
llback properties. This section provides
information on these components.
Push Buttons
Push buttons generate an action when pressed (e.g., an OK button may close a
dialog box and apply settings). When you click down on a push button, it
appears depressed; when you release the mouse, the button’s appearance
returns to its nondepressed state; and its callback executes on the button up
event.
Properties to Set
•String – set this property to the character string you want displayed on the
push button.
•
Tag – GUIDE uses the Tag property to name the callback subfunction in the
application M-file. Set
Tag to a descriptive name (e.g., close_button) before
activating the GUI.
Programming the Callback
When the user clicks on the push button, its callback executes. Push buttons
do not return a value or maintain a state.
Push Buttons Sliders
Toggle Buttons Frames
Radio Buttons Listboxes
Checkboxes Popup Menus
Edit Text Axes
Static Text Figures