LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I drag and drop multiple files on a control?

LabVIEW supports dragging and dropping a single file on a path control, and have the path control populated appropriately. I want a user to be able to highlight multiple files (say, from the OS Find File window, or anywhere really) and drop them into a path array control in LabVIEW. I was hoping putting a path control in an array would do the trick, but it didn't. The mouse cursor changes to the "+" icon as it did for a single file, but when I release the button the system just beeps. Is this even doable?

Thanks, Bob Martin
0 Kudos
Message 1 of 4
(3,563 Views)
I don't believe you can do that. The ability to drop a file into the path control is an attribute of the path control. The array control has no such attribute -- I don't see why the fact that it happens to consist of paths would change that.
0 Kudos
Message 2 of 4
(3,563 Views)
Try G Toolbox/Drag&Drop VIs. You can drop files at any
place on the front panel (run-time only). Download demo
from my web site.


George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 3 of 4
(3,563 Views)
I guess I was hoping that the path control would realize it was in an array, and starting with the actual control where the drop occurred (if more than one item of the array is visible) start populating subsequent slots with the other file paths.

I'm not sure how much work would be involved, but maybe I could make a control in VB that would accept the drop event and output the path array I'm looking for. I've never made a control in VB for LabVIEW before, so I'm leary of how much time that would take. I'll add this to my list of "things to do that never seem to get enough priority to do."
0 Kudos
Message 4 of 4
(3,563 Views)