LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I obtain data dragged from outside the program interface?

How can I obtain data dragged from outside the program interface? Just like dragging a file into the "File Path Control"to obtain the path, I want to drag it to any location within the program interface to obtain the path. I can't get anything using the 'Get Drag Drop Data' function.

0 Kudos
Message 1 of 3
(715 Views)

Hi,

 


@玄冰 wrote:

I want to drag it to any location within the program interface to obtain the path.


Place a huge path control in the background of your frontpanel. Now the user can drop a file (nearly) anywhere…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(700 Views)

You may want to kudo this Idea Exchange idea. https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-drag-and-drop-support-for-OS-files-on-any-control...

 

Discussion over on Lava about this: https://lavag.org/topic/14540-drop-into-a-tree-from-other-program/

 

It really shouldn't be a huge effort to add external drag and drop support to the already existing drag and drop support in the event structure for controls, and if they are were already busy with it, to also add according events to the pane.

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 3
(675 Views)