MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Uživatelský manuál Strana 454

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 500
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 453
14 Examples of UIs Created Programmatically
14-10
The hPrintMenuitemCallback function calls the printdlg function. This function
opens the standard system dialog box for printing the current figure. Your print dialog
box might look different than the one shown here.
Close Menu Item Callback
The hCloseMenuitemCallback function services the Close menu item. It executes
when the user selects Close from the File menu.
function hCloseMenuitemCallback(hObject, eventdata)
% Callback function run when the Close menu item is selected
selection = ...
questdlg(['Close ' hMainFigure.Name '?'],...
['Close ' hMainFigure.Name '...'],...
'Yes','No','Yes');
if strcmp(selection,'No')
return;
end
Zobrazit stránku 453
1 2 ... 449 450 451 452 453 454 455 456 457 458 459 ... 499 500

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

Žádné komentáře