Fri, 07/11/2014 - 03:15 am
I spend a lot of time double clicking on my wave plots to view them. This creates the command 'Display/k=0 wave'. Is there any way of making it 'Display/k=1 wave' instead? This would save me the trouble of having to confirm I don't want to save the plot when I open it up for 2 seconds to check something.
String igorApplicationNameStr
// show data browser and modify the properties
String ModBrowser = "CreateBrowser; ModifyBrowser palette=Terrain, slashK=1, echoCommands=0,"
// 3 effects: terrain palette for images, instant kill, disable browser command echos
Execute/Q ModBrowser // executes the above
End
July 11, 2014 at 05:14 am - Permalink
Then there will be no confirmation dialog.
Not sure what the key on macosx is.
July 11, 2014 at 06:50 am - Permalink
Thanks for this. Pardon my ignorance but how do I make a procedure load automatically with Igor?
July 11, 2014 at 06:53 am - Permalink
Using Igor 6.34A on Macintosh, the palette, slashK, and echoCommands values are all saved to and restored from preferences automatically. It's not clear to me why you need to use your hook function.
July 11, 2014 at 08:25 am - Permalink
- I also use it for creating my own buttons (obviously not posted here).
- I didn't know this behavior would be saved in the preferences. Is this stated anywhere in the help? Also on Win7 the palette reverts back to the default and seems to be not saved along. I didn't look too closely but from the palette change I was deducing that I still have to do all of these changes every start.
- I wrote this like 4 years ago. Was it also saved in much earlier versions of Igor 6?
I hope that clears things up a bit.
July 11, 2014 at 07:12 pm - Permalink
I tested on Macintosh. The DB on Windows and Macintosh use different code bases, so it's possible that the behavior is slightly different. I think the slashK and echoCommands keywords are documented as being saved to preferences. I'm not sure about the palette.
For what it's worth, using Igor 7, all three of those options are saved to preferences on both platforms.
July 12, 2014 at 07:50 pm - Permalink