Data Updated event?

Igor's intelligent graphing functionality is great. I've been very impressed with how a graph automatically updates when the wave it represents is changed. What I'd like to know is this: can that trigger for updating be accessed in code? I've written some processing functions that take a wave and generate a secondary wave from the original data. I'd like this secondary data to also be updated when the original data is modified. Does anyone know if this is possible?

I'd also like to be able to call a user-defined window macro from the context menu in data browser, similar to the way you can create a gizmo plot or simple graph by right-clicking on the wave in data browser. Does anyone have any ideas how to add things to this context menu?
MJHumphry wrote:
... I'd like this secondary data to also be updated when the original data is modified. Does anyone know if this is possible?

I'd also like to be able to call a user-defined window macro from the context menu in data browser, ... Does anyone have any ideas how to add things to this context menu?


1) Help Topics => Dependencies

2) Help Topics => Data Browser => Programming the Browser

--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
Or, even easier, execute these commands from the Igor Pro command window to display the appropriate help topics:

1. DisplayHelpTopic "Dependencies"
2. DisplayHelpTopic "Programming the Browser"

The short answer is that it's possible to do both things you ask. Dependencies can be kind of tricky, so if you still need help after reading through those help topics, feel free to ask. Make sure to pay attention to the talk of the SetFormula() function. If you want to create/destroy a dependency from within a procedure (instead of from the command line), you have to use SetForumla().
Thanks guys for your really prompt and helpful responses. I can see what I need to do now, and will get back to you if I have any problems.