LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 1 of 5
(4,504 Views)
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 Kudos
Message 2 of 5
(4,454 Views)

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 Kudos
Message 3 of 5
(4,436 Views)

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 of 5
(4,423 Views)
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 Kudos
Message 5 of 5
(4,401 Views)