MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Specifikace Strana 33

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 180
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 32
Getting Started Example
1-25
else
set(handles.print_submenu,'Enable','on')
end
The Print Item Callback
The callback for the Print menu item uses the print command to print the
current plot on the user’s default printer. The
-f option specifies the GUI
figure. Since the figure’s
Tag property is set to figure1, the figure’s handle is
contained in the
figure1 field of the handles structure.
function varargout = print_submenu_Callback(h, eventdata, handles, varargin)
print -f handles.figure1
The Close Item Callback
The callback for the Close menu item uses the delete command to close the
GUI figure. Since the figure’s
Tag property is set to figure1, the figure’s handle
is contained in the
figure1 field of the handles structure.
function varargout = close_submenu_Callback(h, eventdata, handles, varargin)
delete(handles.figure1)
Zobrazit stránku 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 179 180

Komentáře k této Příručce

Žádné komentáře