New graph window hook?
tkessler
SetWindow kwTopWin hook=GraphContextual, hookevents=1
Is there an igor event hook function or other method of doing this? I can't see any function in the user-defined hooks list that could serve this purpose.
You can write a loop using WinName to loop through all graphs and apply the hook.
You should choose a distinctive name, such as TKGraphHook, for your hook to avoid clashing with other people's packages. Alternatively you can put your hook in a regular or independent module.
DisplayHelpTopic "Independent Modules"
January 20, 2013 at 11:59 am - Permalink
January 20, 2013 at 01:11 pm - Permalink
DisplayHelpTopic "User-Defined Hook Functions"
Best of luck. It can be tricky to make these hook functions work correctly all the time.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
January 21, 2013 at 09:19 am - Permalink
THANK YOU! That works perfectly so far. I'll keep an eye out for any quirks, but it appears to be working great. I must have overlooked this option when perusing the hook options.
January 21, 2013 at 09:43 am - Permalink