MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Betriebsanweisung Seite 681

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 759
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 680
1 2 ... 676 677 678 679 680 681 682 683 684 685 686 ... 758 759

Kommentare zu diesen Handbüchern

Keine Kommentare