MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Podręcznik Użytkownika Strona 681

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 759
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 680
1 2 ... 676 677 678 679 680 681 682 683 684 685 686 ... 758 759

Komentarze do niniejszej Instrukcji

Brak uwag