Creating Graphical User Interfaces    

Changing the Name of Callback Subfunctions

When you save or activate your GUI, GUIDE replaces the value of any Callback property that is set to <automatic> with a string that executes the callback subfunction in the application M-file. When first inserted into the layout, a push button's Callback property looks like this.

When you save or activate the figure, GUIDE changes the Callback property to a string that executes the callback. The following picture shows the string for the sixth push button added to the layout.

If you want to change the name of a callback, you must also change the string assigned to the Callback property of the uicontrol. This picture shows how the string should look after renaming the callback subfunction to Closebutton_Callback.

GUIDE generates similar strings for the other callback properties.


 Changing Component Tag Properties Changing the Name of the M-file and FIG-file