MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE User's Guide Page 360

  • Download
  • Add to my manuals
  • Print
  • Page
    / 759
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 359
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
Page view 359
1 2 ... 355 356 357 358 359 360 361 362 363 364 365 ... 758 759

Comments to this Manuals

No comments