Im looking for an example on how to make a GUI which will allow the user to browse their data folders and pick out two files for loading. Ive read thru most of the user manual, but the pathing issue seems a bit confusing, and Im not sure where to start. I have very basic c++ and python programming experience.
Does anybody have any links to extra programming tutorials with working examples, similar to the "Introduction to IGOR Pro Programming" tutorial? Specially with regards to building GUIs. (I have III-14 and IV-6 printed out on my desk, among other chapters.)
Thank you Obi-Wan, you're my only hope. ;-)
Do you want the folder browsing to occur in the GUI itself, or open a dialog box which the user can navigate with? If it's the latter, use LoadWave with no path specified. This will open a dialog box by default, enabling the user to find the file they want. I've never used this method to select two files simultaneously, but it may be possible (or just use two separate dialog boxes).
You might take a look at the following two pacakages on this site....
Hey thanks, guess I should be more explicit given the questions.
I was looking to build (or hijack) a browsing function within the GUI to output the data_file paths to the rest of my program. Hopefully something which would be on the same screen (like two browse for file buttons) and where the second button would possibly start you in the same folder as the first file's location. I would like to avoid putting the user thru IGOR's native menus, A) for quicker automation of data treatment and B) so I can learn how to build that kind of GUI myself.
Basically I have a lot of repetitive tasks (dont we all) and I would like to quickly start up a program to load files in, push a button, and get my graphs out. Once I have the paths to the files, everything else is about easy as pie. I thought about hardcoding some kind of setup, but thats just ugly, isnt it..
I'll look into the links provided, thanks again.
EDIT: that multifileloader looks like just the thing for me to pick apart, thanks very much!
To select one file at a time:
DisplayHelpTopic "Displaying an Open File Dialog"
To select multiple files at a time:
DisplayHelpTopic "Displaying a Multi-Selection Open File Dialog"
To create a control panel with buttons:
DisplayHelpTopic "Controls and Control Panels"
That is perfect, Hrodstein. Looks like I feel victim to the classical blunder, "always make sure you have the latest version before you get involved in a land war with Asia".. my IGOR was missing the two help files on displaying load options.
Back to top