Function trigger for trace offset?
Does anyone know a hook or other method to use for triggering a function upon offsetting a trace? I'd like to be able to drag a trace in a graph window to a new location (ie, for offsetting a threshold trace), and then when released have igor execute a function to take into account the new offset location, etc.
Any ideas?
Caveat: The hook is not called if the trace offsets are set by a command, only if set by dragging.
For details on window hooks:
Another approach would be to use a background task to look at the trace offsets periodically.
January 5, 2013 at 09:42 pm - Permalink
eventCode=8
eventName="modified"
A modification to the window has been made. This is sent to graph and notebook windows only. It is an error to try to kill a notebook window from the window hook during the modified event.
NOTE: If your function modifies the graph, add recursion protection to prevent responding to the resulting "modified" event again.
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
January 6, 2013 at 10:16 am - Permalink
January 6, 2013 at 05:42 pm - Permalink