MATLAB Creating Graphical User Interfaces

(ff) #1

To use the name of a component in your code, you can save some time by copying the
name from the Component Browser. Right-click the component name and select Insert
at Cursor. Alternatively, you can drag the component name from the list into your code.


To delete a component, select its name in the Component Browser and press the Delete
key.


Managing Callbacks


To make a component respond to user interactions, add a callback. Right-click the
component in the Component Browser and select Callbacks > Add (callback
property) callback.


If you delete a component from your app, App Designer deletes the associated callback
only if the callback has not been edited and is not shared with other components.


To delete a callback manually, select the callback name in the Callbacks tab of the Code
Browser and press the Delete key.


For more information about callbacks, see “Write Callbacks in App Designer” on page 17-
18.


Managing Code in App Designer Code View
Free download pdf