Creating Graphical User Interfaces    

Changing the Name of Callback Properties

You can change the name of a callback property so that it points to the correct callback using the Property Inspector. For example, to change 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 pushbutton_Callback in the M-file. If you need to change the callback property to Closebutton_Callback, simply replace the string pushbutton_Callback with Closebutton_Callback in the Callback field, as shown in the following figure.

GUIDE generates similar strings for the other callback properties.


  Updating Callback Properties and Functions After Changing Tags Exporting a GUI to a Single M-File