Graphics Previous page   Next Page

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:

User Interface Object Callbacks

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

Figure Callbacks

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


Previous page  Grouping Objects Within Axes -- hgtransform Function Handle Callbacks Next page

© 1994-2005 The MathWorks, Inc.