LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drop down file browser

Solved!
Go to solution
I've been trying to create a control that would combine the functionality of a drop down menu or combo box and a path control.  I've just started getting into XControls, so I'm not really sure how I could implement this.
0 Kudos
Message 1 of 7
(4,592 Views)
I, for one, am having trouble visualizing what you are describing. Can you say a bit more, or perhaps post a picture of what you would see it looking like?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(4,561 Views)
Could be just a combo box that is of the path type instead of the string type.

After conversion of a path to string it can be put into a combobox or ring list. Although the combo box allows manual user entries. Drawback is that the user has to type in the whole path, instead of being able to browse to the path.

Looks like an interesting combination.

André

Message Edited by andre.buurman@carya on 08-24-2007 07:13 AM

Regards,
André (CLA, CLED)
0 Kudos
Message 3 of 7
(4,553 Views)
Here's a quick example of what I had in mind.  It could even be implemented like this, but I think that an XControl could be made so that it functions a little more smoothly.
0 Kudos
Message 4 of 7
(4,540 Views)

You probably need some tighter definitions of the requirements. What should the entries be, e.g.: "All files matching a certain pattern in the currently selected folder?"

How do you switch between folders?

One possibility would be to use the browse option of the path control to select folders, then list the selected folder and populate the other control with files matching a certain pattern..

0 Kudos
Message 5 of 7
(4,535 Views)
Thanks for the ideas and sorry about the lack of detail.  What I would like to do is import a list of map files, based on a project file that the user has selected, while maintaining the ability to select a completely different map file.  The file that contains the list of map files is part of some third-part software, but it's easy enough to import using the config file vi's.  The problem I'm having is in trying to figure out how to get that list of files into the drop-down list of a combo box in an XControl.  I'm trying to figure out how to use the properties to write an array of paths in string format, but I haven't quite figured that out.  Attached is a better vi for what I want to do.
0 Kudos
Message 6 of 7
(4,527 Views)
Solution
Accepted by topic author TopherA
Use the "Strings[]" properties to fill the combo list programmatically.

Regards,

André
Regards,
André (CLA, CLED)
Message 7 of 7
(4,519 Views)