MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manuale Utente Pagina 422

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 500
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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.
Vedere la pagina 421
1 2 ... 417 418 419 420 421 422 423 424 425 426 427 ... 499 500

Commenti su questo manuale

Nessun commento