User`s guide
9 Managing and Sh aring Application Data in GUIDE
wait state; if it is, it ca lls uiresum e and returns, enabling the OutputFcn
to be called:
function figure _Clo seRequestFcn(hObject,ev entdata,handles)
% hObject handle to figure (see GCB O)
% eventdata re serv ed - to be defi ned in a future ver sion of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Check appdata flag to see if the main GUI is in a wait state
if getappdat a(ha ndles.figure,'waiting')
% The GUI i s still in UIWAIT, so call UIRESUME and return
uiresume(hObject);
setappdata(handles.figure,'waiting',0)
else
% The GUI i s no longer waiting , so destroy it no w.
delete(hObject);
end
Example — Individual GUIDE GUIs Cooperating as
Icon Manipulation Tools
This example demonstrates how three GUIs in GUIDE work together when
invoked from the main GUI. The tools are listed and illustrated below:
• The drawing area (Icon Editor)
• The tool selection toolbar (Tool Palette)
• The color picker (Color Palette)
9-30