User`s guide
Initialize a Programmatic GUI
The fullfi le function builds a full filename fr om parts.
The following statements each start the Icon Editor. The first one could be
used to create a new icon. The second one could be used to edit an existing
icon file.
cdata = iconEditor('iconwidth',16, 'iconheight',25)
cdata = iconEditor('iconfile',' eraser.gif');
iconEditor
calls a routine, processUserIputs, during the initialization to
• Identify each property by m atching it to the first column of the cell array
• Call the routine named in the second column to validate the input
• Assign the value to the variable named in the third column
See the complete Icon E ditor code file for more info rmation.
MaketheFigureInvisible
When you create the GUI figure, make it inv isible so that you can d ispla y i t
for the user only when it is complete. Making it invisible during creation
also enhances performance.
To m ake the GUI invisible, set the figure
Visible property to off.This
makes the entire figure window invisible. The statement that creates the
figure might look like this:
hMainFigure = figure(...
'Units','characters',...
'MenuBar','none',...
'Toolbar','none',...
'Position',[71.8 34.7 106 36.15],. ..
'Visible','off');
Just before returning to the caller, you can make the figure visible with a
statemen t like th e follow in g:
set(hMainFigure,'Visible','on')
12-5