MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Bedienungsanleitung Seite 298

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 330
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 297
12 Examples of GUIs Created Programmatically
12-20
Print Menu Item Callback
The hPrintMenuitemCallback function services the Print menu item and the
Print toolbar button . Selecting the menu item or clicking the toolbar button
triggers the execution of this callback function.
function hPrintMenuitemCallback(hObject, eventdata)
% Callback function run when the Print menu item is selected
printdlg(hMainFigure);
end
The hPrintMenuitemCallback function calls the printdlg function. This
function opens the standard dialog box for printing the current figure.
Close Menu Item Callback
The hCloseMenuitemCallback function services the Close menu item. It
executes when the GUI user selects
Close from the File menu.
function hCloseMenuitemCallback(hObject, eventdata)
% Callback function run when the Close menu item is selected
selection = ...
questdlg(['Close ' get(hMainFigure,'Name') '?'],...
['Close ' get(hMainFigure,'Name') '...'],...
'Yes','No','Yes');
Seitenansicht 297
1 2 ... 293 294 295 296 297 298 299 300 301 302 303 ... 329 330

Kommentare zu diesen Handbüchern

Keine Kommentare