iptSetPointerBehavior
Store pointer behavior structure in graphics object or UI component
Syntax
Description
iptSetPointerBehavior(
stores a pointer behavior structure in a graphics container,
obj,pointerBehavior)obj. A pointer behavior structure controls what happens
when the mouse pointer moves over and then exits the graphics container. A graphics
container can be a graphics object or a UI component. If obj is
an array of graphics containers, then iptSetPointerBehavior
stores the same pointer behavior structure in each container.
For the pointer to perform the desired pointer behavior, you must also create a
pointer manager in the parent figure of the graphics container
obj. For more information about creating a pointer manager
for a figure, see iptPointerManager.
iptSetPointerBehavior( clears the
pointer behavior from the graphics container or containers.obj,[])
Examples
Input Arguments
Tips
If you specify a pointer behavior using
iptSetPointerBehaviorand then change the figure pointer without usingiptSetPointerBehavior, then the pointer manager of the parent figure may not reflect the new behavior. Some ways to change the figure pointer without usingiptSetPointerBehaviorinclude using ROI objects such asPolygon, another graphics object, another custom UI, or code that modifies the pointer from within a callback.
Version History
Introduced in R2006a

