User`s guide
2 How to Create a GUI with GUIDE
• Create menus and context menus
• Create toolbars
• Modify the appearance of components
• Set tab order
• View a hierarchical list of the component objects
• Set GUI options
The following topic, “Lay Out the Simple GUI in GUIDE” on page 2-11, uses
some of these tools to show you the bas ics of laying out a GU I. “GUIDE Tools
Summary” on page 4-3 describes the tools.
Programming a GUIDE GUI
When you save your G UI layout, GUIDE automatically generates a file of
MATLAB code for controlling the way the GUI works. This file contains code
to initialize the GUI and organizes the GUI callbacks. Callbacks are functions
that execute in response to us er-generated events, such as a mouse click.
Using the MATLAB editor, you can add code to the callbacks to perform the
functions you want. You can also add new functions for callbacks to use.
“Program the Simple GUIDE GUI” on page 2-28 shows you what statements
toaddtotheexamplecodetomaketheGUIwork.
2-8