Callback
Property
User Action Components That Use This
Property
CloseRequestF
cn
The figure closes. figure
CreateFcn Callback executes when MATLAB
creates the object, but before it is
displayed.
axes, figure, uibuttongroup,
uicontextmenu, uicontrol,
uimenu, uipushtool, uipanel,
uitable, uitoggletool,
uitoolbar
DeleteFcn Callback executes just before
MATLAB deletes the figure.
axes, figure, uibuttongroup,
uicontextmenu, uicontrol,
uimenu, uipushtool, uipanel,
uitable, uitoggletool,
uitoolbar
KeyPressFcn End user presses a keyboard key
while the pointer is on the object.
figure, uicontrol, uipanel,
uipushtool, uitable,
uitoolbar
KeyReleaseFcnEnd user releases a keyboard key
while the pointer is on the object.
figure, uicontrol, uitable
OffCallback Executes when the State of a
toggle tool changes to 'off'.
uitoggletool
OnCallback Executes when the State of a
toggle tool changes to 'on'.
uitoggletool
SizeChangedFc
n
End user resizes a button group,
figure, or panel whose Resize
property is 'on'.
figure, uipanel,
uibuttongroup
SelectionChan
gedFcn
End user selects a different radio
button or toggle button within a
button group.
uibuttongroup
WindowButtonD
ownFcn
End user presses a mouse button
while the pointer is in the figure
window.
figure
WindowButtonM
otionFcn
End user moves the pointer within
the figure window.
figure
10 Code a Programmatic App