annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

Any File Browser Control examples?

I just learned of the File Browser Instrument that comes with LabWindows.  I want to build a data viewing program where the user can click on a file in a list, and once the click happens it will read in the file and do it's thing.  Originally, I was only aware of the FileSelectPopup and was going to use that to populate a list.  The File Browser looks a lot nicer, but I can't seem to generate a event every time I click on the File side of the Tree.
 
Anyone have any examples I can look at?
 
Thanks,
Dan
0 Compliments
Message 1 sur 5
4 583 Visites
Dan,
 
I looked around for a while and couldn't find any really good examples for how to use the file browser control.  I'm going to try and write a quick example that shows how to use this and then post it on this thread.
 
Justin D.
Applications Engineer
National Instruments
0 Compliments
Message 2 sur 5
4 533 Visites

Hi Justin,

Thanks very much.  I have given up on it and have been working on using listboxes and DirSelectPopup to make it work.  The File browser is a much cleaner approach and a lot more user friendly.  If you can figure it out, I and I'm sure others would be very grateful.

Thanks very much,
Dan

0 Compliments
Message 3 sur 5
4 515 Visites

Dan,

I wrote an example of how to use the file browser.  It was a little tricky because I had to dynamically figure out what the control id of the right hand side of the file browser was.  After I figured this out, all I had to do was install a callback function for this panel and look at what the selected value was.

I hope this helps,
Justin D.
Applications Engineer
National Instruments

Message 4 sur 5
4 502 Visites
Thanks Justin,
 
That's what I was trying to figure out and couldn't.  I don't know how you came up with that solution, something I'll remember for future use. 
 
Thanks for all your help,
Dan 
0 Compliments
Message 5 sur 5
4 480 Visites