01-13-2014 12:10 PM
Okay, here's one for the the LabVIEW gurus....
I've got an app where I'm selecting a bunch of files in file requester- now I want to display a requester showing the files that have been previously selected and allowing the user to close them.
So, question is, any way of hijacking a file requester to display a list of files I specify? They may all live in different directories.
Solved! Go to Solution.
01-13-2014 12:38 PM
Are you talking about the file dialog?
You can give a custom pattern to the file name, e.g. "abc*.txt" would only display files matching the pattern.
If these are files that have been opened exclusively in that same application earlier, you could simply retain a list of files and display them in a listbox. double-clicking an entry would trigger an event that handles that file, for example.
01-13-2014 12:40 PM
Yes, a file dialog. I guess I'm after a listbox in file dialog clothing...
01-13-2014 01:18 PM
the file dialog Xvi does have a browse opionions input.
01-13-2014 01:24 PM
@JÞB wrote:
the file dialog Xvi does have a browse opionions input.
Sorry, I don't understand this....
@ToeCutter wrote:
Yes, a file dialog. I guess I'm after a listbox in file dialog clothing...
Yes, Just create your own diaolog style subVI.
01-13-2014 01:49 PM
I guess what I'm after is not available. I want something that looks exactly like a file dialog, but displaying my own options for selections- not files. These options could be say, strings I supply.
Yes, I can create a dialog that looks like a file dialog, but I wondered if there was a way to hijack the system file dialog window to display and select my own data, the advantage being effort saved and obtaining an appearance identical with the system file dialog.
It was a long shot..
01-13-2014 03:20 PM
@ToeCutter wrote:
I guess what I'm after is not available. I want something that looks exactly like a file dialog, but displaying my own options for selections- not files. These options could be say, strings I supply.
Yes, I can create a dialog that looks like a file dialog, but I wondered if there was a way to hijack the system file dialog window to display and select my own data, the advantage being effort saved and obtaining an appearance identical with the system file dialog.
It was a long shot..
Not really,
the "Normal" xvi cofiguration options will get what you want.
01-13-2014 04:48 PM
I was glad to see that Altenbach also didn't understand "Xvi". I just realized you meant "the File Dialog Express VI" ...
01-13-2014 05:12 PM - edited 01-13-2014 05:48 PM
I guessed he meant the express VI, but I still don't see how it could work for all imaginable scenarios.
He wants to only show a list of "previously selected files".
It is not obvious if these files have a certain pattern or even exist all in the same folder. How does the file dialog know what has been previously selected? And where is the "browse opinions" input? I don't have that. 😉