User`s guide
WriteCodeforCallbacks
Callback Property Triggering Event Components
ClickedCallback
Control action. Executes
when the push tool or
toggle tool is clicked. For
the t oggle tool, this is
independent of its state.
Push tool, toggle
tool
CloseRequestFcn
Executes when the figure
closes.
Figure
CreateFcn
Initializes the component
when it is created.
It executes after the
component or figure is
created, but before it is
displayed.
Axes, button
group, context
menu, figure,
menu, panel,
push tool, toggle
tool, toolbar, user
interface controls
DeleteFcn
Performs cleanup
operations just before
the com po ne nt or figure is
destroyed.
Axes, button
group, context
menu, figure,
menu, panel,
push tool, toggle
tool, toolbar, user
interface controls
KeyPressFcn
Executes when the user
presses a keyboard key and
the callback’s component or
figure has focus.
Figure, user
interface controls
KeyReleaseFcn
Executes when the user
releases a keyboard key
and the figure has focus.
Figure
OffCallback
Control action. Executes
when the
State of a toggle
tool is changed to
off.
Toggle tool
OnCallback
Control action. Executes
when the
State of a toggle
tool is chan ged to
on.
Toggle tool
12-9