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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 759
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 734
Icon Editor
• “Retrieve Output o n R eturn from a GUI” on page 15-73
• “Protect a GUI from Inadvertent Access” on p age 15-74
• “Run a GUI on Multiple Platforms” on page 15-75
• “Make a GUI Modal” on page 15-76
• “Share Data Between Two GUIs” on page 15-77
• “Achieve Proper Resize Behavior” on page 15-78
Return Only After the User Makes a Choice
At the end of the initialization code, and just before returning, iconEditor calls
uiwait with the handle of the main figure to make the GUI blocking.
% Make the GUI blocking
uiwait(hMainFigure);
% Return the edited icon CD ata if it is requested
mOutputArgs{1} =hMainFigure;
mOutputArgs{2} =mIconCData;
if nargout>0
[varargout{1:nargout}] = mOutputAr gs{:};
end
Placement of the call to ui wait is important. C allin g ui wait stops the
sequential execution of
iconEdit.m after the GUI initializes and just before
the file would return the edited icon data.
When the user clicks the OK button, its callback,
hOKButtonCallback,calls
uiresume whichenablesthecodefiletoresumeexecutionwhereitstopped
and return the edited icon data.
function hOKBut tonC allback(hObject, ev entd ata)
% Callback called when the OK button is pr essed
uiresume;
delete(hMainFigure);
end
15-71
Page view 734
1 2 ... 730 731 732 733 734 735 736 737 738 739 740 ... 758 759

Comments to this Manuals

No comments

VTech Phones user manuals

Starting on S

Click on an alphabet below to scroll to the full list of models starting with that letter

Models Document Type
S2100 Spec Sheets
User Manual   VTech S2100 Spec Sheets User Manual, 2 pages
S2220 Spec Sheets
User Manual   VTech S2220 Spec Sheets User Manual, 3 pages
S2221 Data Sheets
User Manual   VTech S2221 Data Sheets User Manual, 1 pages
S2221 Manual
User Manual   VTech S2221 Manual User Manual, 37 pages
S2221 Spec Sheets
User Manual   VTech S2221 Spec Sheets User Manual, 3 pages
S2320 Spec Sheets
User Manual   VTech S2320 Spec Sheets User Manual, 4 pages
SN6107 Manual
User Manual   VTech SN6107 Manual User Manual, 14 pages
SN6127_-2 Abridged manual
User Manual   VTech SN6127_-2 Abridged manual User Manual, 101 pages
SN6127_-2 Manual
User Manual   VTech SN6127_-2 Manual User Manual, 116 pages
SN6127_-2 Quick start
User Manual   VTech SN6127_-2 Quick start User Manual, 12 pages
SN6167 Manual
User Manual   VTech SN6167 Manual User Manual, 12 pages
SN6187 Abridged manual
User Manual   VTech SN6187 Abridged manual User Manual, 125 pages
SN6187 Manual
User Manual   VTech SN6187 Manual User Manual, 127 pages
SN6187 Quick start
User Manual   VTech SN6187 Quick start User Manual, 20 pages
SN6197_-2 Abridged manual
User Manual   VTech SN6197_-2 Abridged manual User Manual, 93 pages
SN6197_-2 Manual
User Manual   VTech SN6197_-2 Manual User Manual, 162 pages
SN6197_-2 Quick start
User Manual   VTech SN6197_-2 Quick start User Manual, 20 pages