User`s guide

8 Programming a GUIDE GUI
GUIDE names callbacks based on the callback type and the component
Tag property. For example, togglebutton1_Callb ack is such a default
callback name. If you change a component
Tag,GUIDErenamesallits
callbacks in the code file to contain the new tag. You can change the name
of a callback, replace it with another function, or remove it entirely using
the Property Inspector.
GUIDE provide s three arg u ments to callbacks, always named the same.
You can append a rguments to GUIDE-generated callbacks, but never alter
or remove the ones that GUIDE places there.
You can rename a GUIDE-generated callback by editing its name or by
changing the component
Tag.
You can de lete a c allback from a compo nen t by cle aring it from the Property
Inspector; this action does not remove anything from the code file.
You can specify the same callback function for multiple com ponents to
enable them to share code.
After you delete a component in GUIDE, all callbacks it had remain in the
code file. If you are sure that no other com ponent uses the callbacks, you can
then remove the callback code manually. For details, see “Deleting Callbacks
from a GUI Code F ile” on page 8-14. If you need a w ay to remove a callback
without deleting its component, see .
8-10