Specifications
3 Laying Out GUIs and Setting Properties
3-54
Making the Change in the Property Editor. For example, to change the callback name
in a push button’s callback property, select the push button in the Layout
Editor and then select
Property Inspector in the View menu. Scroll down in
the Property Inspector until you come to
Callback, as shown in the following
figure.
As shown, the callback property points to
pushbutton1_Callback in the M-file.
If you need to change the callback property to
Closebutton_Callback, replace
the string
pushbutton1_Callback with Closebutton_Callback in the
Callback field, as shown in the following figure.
Making Sure Your GUI Still Works. If you change the value of any callback
properties manually in the Property Inspector, GUIDE does not update the
corresponding callbacks in the M-file, and might not be able to update the
callback properties or references to the handles structure. If you change the
value of a callback property, you must make sure that
• Callback functions in the M-file are updated.
• Callback function names in the callback properties agree with the names of
the appropriate callback functions in the M-file.