Graphics    

Callback Properties for Graphics Objects

A callback is a function that executes when a specific event occurs on a graphics object. You specify a callback by setting the appropriate property of the object. This section describes the events (specified via properties) for which you can define callbacks. See Function Handle Callbacks for information on how to define callbacks.

Graphics Object Callbacks

All graphics objects have three properties for which you can define callback routines:

Uicontrol, Uimenu, and Uicontextmenu Callbacks

Uicontrol, uimenu, and uicontextmenu objects have a Callback property through which you define the function to execute when users activate these devices (e.g., click on a push button or select a menu).

Figures Callbacks

Figures have additional properties that execute callback routines with the appropriate user action. Only the CloseRequestFcn has a callback defined by default:


  Properties Changed by Built-In Functions Function Handle Callbacks