Jump to content
David_L

Multiple files in file path

Recommended Posts

Hey,

I've been doing some tinkering and can't seem to find a nice solution to this problem. Does anyone know of a way you can select multiple files from a path control? I know this can be done with the File Dialog Express VI, but I'd like to do it more gracefully from the front panel control. I don't think it's possible, but maybe someone here has some neat trick.

Alternately, is there any way to capture the drag event from multiple files dragged from Windows? I know a single file dragged into a File Path Control will populate it with the correct path, but maybe there's a way to drag multiple files onto an array of paths or something.

Thanks!

Share this post


Link to post
Share on other sites

The first thing that comes to mind is an array of paths with a boolean "browse" button tied to a file dialog, and to put a Drop event in an event structure. Next thing was a string control instead of a array of paths which lead to needing to check for correct path structure which lead to thinking about XControls...

Share this post


Link to post
Share on other sites

Haha, yes, my final thoughts were be to create an XControl with a string control and a boolean button that would call the File Dialog with multiple files. Then it could populate the string control with all the paths, separated by commons. However I was hoping to avoid that if there was some easier workaround.

Thanks for the ideas though!

Share this post


Link to post
Share on other sites

Wait, you want to get multiple paths into a path control? ...or an array of path controls?

Share this post


Link to post
Share on other sites

Ideally, multiple paths in a path control. The array of path controls with drag and drop is another possibility I thought, but not as pretty in the UI.

Share this post


Link to post
Share on other sites

My first advice is to walk down the hall and flog or bribe (depending on the individual) whoever it takes to get a native cross-platform way to do this. My usual solution since I am locked to Windoze is hijacking the Windows Message Queue, like this example:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.