MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Uživatelský manuál Strana 422

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 500
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 421
11 Code a Programmatic UI
11-4
1
A call to uiwait blocks execution until uiresume is called or the current figure is
deleted.
2
While execution is blocked, the user creates the icon.
3
When the user clicks OK, that push button’s callback calls the uiresume function.
4
The program returns the completed icon to the user as output.
% Make the window blocking.
uiwait(hMainFigure);
% Return the edited icon CData if it is requested.
mOutputArgs{1} = mIconCData;
if nargout>0
[varargout{1:nargout}] = mOutputArgs{:};
end
mIconData contains the icon that the user created or edited. mOutputArgs is a cell
array defined to hold the output arguments. nargout indicates how many output
arguments the user has supplied. varargout contains the optional output arguments
returned by the program. See the complete Icon Editor code file for more information.
Zobrazit stránku 421
1 2 ... 417 418 419 420 421 422 423 424 425 426 427 ... 499 500

Komentáře k této Příručce

Žádné komentáře