LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Drag and Drop Tree Control

Hello all, I posted asking a question earlier about why my tree wasn't allowing me to drag and drop the controls within it. I was told to make an event structure for it, so I did. The problem is that I'm pretty sure I made the event structure properly, but I still can't select, let alone drag and drop any of my controls. Here is my code.

0 Kudos
Message 1 of 5
(140 Views)

I can't open your VI.  A lot of people here don't have the latest version of LabVIEW.  Backsave your VI to version 2019 to make it accessible to a lot of people.

 

Note that for tree controls, you have to write the code for drag and drop.  That is you have to create the code for the various "Drag" events on the tree.

0 Kudos
Message 2 of 5
(99 Views)

Here is the VI in the 2019 version:

0 Kudos
Message 3 of 5
(77 Views)

The property "Allow Selection of Parent Items" being set to False is preventing anything from being selected (but I don't  know why).

Also:

  1. You don't need to set properties every time.  They are retained when you save the VI.
  2. You can have property nodes linked to controls, you don't need to have a reference wired to a property node.
  3. Properties are executed in the order they appear.

So you can have something like this:

paul_a_cardinale_0-1753059595134.png

Message 4 of 5
(69 Views)

Thanks, it seems like it's treating the signals of my .dbc file as a part of the parent tag. All I did to fix it was set the "Child Only?" part of the invoke node to true (it is false as default). I kept all the property node values the same and it works as intended.

robv1234_0-1753061733465.png

Your three points will help for future reference, thanks for the help.

0 Kudos
Message 5 of 5
(64 Views)