MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual do Utilizador Página 179

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 330
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 178
GUI Files: An Overview
8-7
Adding Callback Templates to an Existing GUI
M-File
When you save the GUI, GUIDE automatically adds templates for some
callbacks to the M-file. However, you may want to add other callbacks to the
M-file.
Within GUIDE, you can add a callback subfunction template to the GUI M-file
in one of two ways. With the component selected for which you want to add the
callback:
Click the right mouse button to display the Layout Editor context menu.
Select the desired callback from the
View callbacks submenu. GUIDE adds
the callback template to the GUI M-file and opens the M-file for editing at
the callback it just added.
In the View menu, select the desired callback from the
View callbacks
submenu. GUIDE adds the callback template to the GUI M-file and opens
the M-file for editing at the callback you just added.
Note In either case, if you select a callback that already exists in the GUI
M-file, GUIDE adds no callback, but opens the M-file for editing at the
callback you select.
For more information, see “Associating Callbacks with Components” on
page 8-8.
Vista de página 178
1 2 ... 174 175 176 177 178 179 180 181 182 183 184 ... 329 330

Comentários a estes Manuais

Sem comentários