Update figure

Hi. I have a figure which operates in tools mode and has two polygons on the upper layer. The user must be able to move these polygons around while the figure gets updated. Is there any way to program such that the user has access to the polygons, without using a background process. I am looking for something similar to doupdate/E=1, which lets user control a panel while an active loop is running.
Perhaps you could use PauseForUser?

(Not sure what you mean by "while the figure gets updated".)

Or perhaps use

SetWindow graphName hook=myHookFunction

and handle mouse moved events on your own?

Just some ideas.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.
I have a live feed from a camera. Can't pause to wait for user. The squares which the user can drag are suppose to mark regions of interest around some beads in the experiment, while the live feed goes on. Could you elaborate on how I could write the hook function to control these squares that are in the draw layer ontop of the live feed? I know how to link a graph to a hook function, just don't know how to have the tools activated in that hook function so that the user can drag the squares around. My program then reads the position of the squares to determine the ROIs.

JimProuty wrote:
Perhaps you could use PauseForUser?

(Not sure what you mean by "while the figure gets updated".)

Or perhaps use

SetWindow graphName hook=myHookFunction

and handle mouse moved events on your own?

Just some ideas.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.