03-31-2022 02:42 AM - edited 03-31-2022 02:44 AM
Hello! I'm trying to make some sort of file manager in Tree. What I want is drag and drop "files" from Listbox to Tree, but only as children. How can I do that? Thanks.
Solved! Go to Solution.
03-31-2022 06:46 AM
Why not post the VI?
We're not going to recreate what you have, and if we did it wouldn't match what you have.
03-31-2022 07:00 AM
My bad.
03-31-2022 07:24 AM
OK, that helps.
Sadly, this won't be trivial.
You'd have to add a Tree Drop event. That event gives coordinates. You can use the coordinates to find out where the mouse is, by using Point To Row Column method. The event allows you to accept or not accept the drop.
Sadly (its all very sad), if you use any drag\drop event, you loose all the build in functionality and you'll have to DIY.
If you want feedback while dragging, you can add a Tree Drag Over event. That event also gives coordinates...
03-31-2022 08:03 AM
Ok, I'll try it, thank you!