User`s guide

8 Programming a GUIDE GUI
When you save th e GUI, GUIDE also o pens the GUI code file in y ou r e di tor.
The file then contains a template for the
Callback callback for the component
whose
Tag is pushbutt on1. If you activate the GUI, clicking the push button
triggers the execution of the
Callback callback f or the component.
For information about changing the callback name after GUIDE assigns it,
see “Changing Callbacks Assigned by GUIDE” on page 8-22. For information
about adding callback templates to the GUI code file, see “Adding Callback
Templates to an Existing GUI Code File” on page 8-9.
The next topic, “Customizing Callbacks in GUIDE” on page 8-15, provides
more information about the callback tem plate.
Deleting Callbacks from a GUI Code File
There are times when you want to delete a callback from a GUI code file. You
can delete callbacks whether they are manually or automatically generated.
Some common reasons for wanting to delete a callback are:
You delete the component or components to which the callback responded
You want the component to execute different a callback function, which you
identify in the appropriate callback property in the Property Inspector. See
“Changing Callbacks Assigned by GUIDE” on page 8-22 for instructions
and guidelines.
Only delete a callback if you are sure that the callback is not used. To ensure
that the callback is not used elsewhere in the GUI:
Search for occurrences of the name of the callback in the code.
OpentheGUIinGUIDEandusethePropertyInspectortocheckwhether
any component uses the callback you want to delete.
In either case, if you find a reference to the callback, either remove the
reference or retain the callback in the code. Once you have assured yourself
that the GUI does not need the code, manually delete the entire callback
function from the code file.
8-14