LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 5 条)
4,556 次查看
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 项奖励
2 条消息(共 5 条)
4,506 次查看

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 项奖励
3 条消息(共 5 条)
4,488 次查看

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

4 条消息(共 5 条)
4,475 次查看
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 项奖励
5 条消息(共 5 条)
4,453 次查看