A callback is a function that executes in response to some predefined user action, such as clicking on a graphics object or closing a figure window.
To use callback properties, assign the callback code to the property.
There are two properties that determine if and how
objects respond to mouse clicks,
Button down callbacks execute when users left-click on the graphics object for which the callback is assigned.
This example shows how to define a context menu, which enable you to provide choices to users for interaction with graphics objects.
This example shows how to define an object creation callback.
This example shows how to define an object deletion callback.
This example shows how a group of objects can pass a mouse click to a parent, which operates on all objects in the group.
This example shows how to pass mouse clicks to an obscured object.