LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Tree Drag and Drop

Solved!
Go to solution

Relatively new to Labview and I'm trying to use the drag and drop feature, but I can't seem to get it to work. I am programmatically loading a .dbc file and populating a tree with its frames and signals. I am also using property nodes to change the certain aspects of the tree control, like allowing dragging, selection mode, etc... For some reason it won't let me drag and drop and any of the items in the tree.  Here is the code right now:

robv1234_0-1752848345545.png

Help would be appreciated.

0 Kudos
Message 1 of 2
(75 Views)
Solution
Accepted by topic author robv1234

You won't be able to turn on drag/drop and have it magically start working.  You'll need to add the functionality yourself (using the event structure) to catch/handle all of the events (drag start, drag end, drop, etc).  There will also be edge cases that you'll need to handle (i.e. item dropped outside of control, etc). This will be a very difficult endeavor for you, being new to LabVIEW.  Best to find some examples online or in the Example Finder within the LabVIEW help menu to guide you through this.  You'll also need a good understanding of the event structure. 

aputman
Message 2 of 2
(52 Views)