MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guía de usuario Pagina 681

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 759
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 680
GUI with Axes, Menu, and Toolbar
The hPrintMenuitemCallback function calls the printdlg function. This
function opens the standard system dial o g box for printing the current figure.
Your print dialog box might look different than the one shown here.
Close M
enu Item Callback
The hCloseMenuitemCallback function services the Close menu item. It
executes when the GUI user selects Close from the File menu.
funct
ion hCloseMenu item Callback(hObject, e vent data)
%Cal
lback function run when the C lose menu item is selected
sele
ction = ...
ques
tdlg(['Close ' get(hMainFigure,'Name') '?'],...
['Cl
ose ' get(hMainFigure,'Name') '...'],...
'Ye
s','No','Yes');
if s
trcmp(selection,'No')
ret
urn;
en
d
15-17
Vista de pagina 680
1 2 ... 676 677 678 679 680 681 682 683 684 685 686 ... 758 759

Comentarios a estos manuales

Sin comentarios