
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.
Kommentare zu diesen Handbüchern