User`s guide

Making Multiple GUIs Work Together
Note Do n o t save GUI files to the examples folder where you fo und them,
or you will overwrite the original files. If you want to s ave the G UI files,
use File > Save as from GUIDE, which saves both the GUI FIG-file and
the GUI code file.
The behavior of the Icon Editor applicatio n is described in this se qu ence:
“Icon Editor Implementation” on page 9-33
“Opening the Icon Editor and the Tool and Color Palettes” on page 9-35
“Setting the Initial C olor on the Color Palette” on page 9-37
“Accessing the Color Palette’s Current Color f rom the Icon E ditor” on page
9-38
“Using UserData Property to Share D ata” on page 9-39
“Dis playing the Current Tool’s Cursor” o n page 9-40
“Closing All Windows When Complete” on page 9-41
Icon Editor Implementation
The Icon Editor application uses three code files and three FIG-files that
are fully implemented in GUIDE. You can modify and enhance them in the
GUIDE environment if you choose. The files are:
guide_iconeditor.fig and guide_iconedito r.m —MainGUI,for
drawing and modifying icon files
guide_colorpalette.fig and guide_colorpalette.m Palette for
selecting a current color
guide_toolpalette.fig and gu ide_toolpalette.m Palette for
selecting one of four editing t ools
The c ode files contain the following function signatures and outpu t s (if any):
guide_iconeditor.m
varargout = guide_iconeditor(varargin)
9-33