LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drag multiple items in Tree Control

Solved!
Go to solution

I want to move / copy multiple items of a tree control. In the <Drag Starting?> Event I create custom Data. The reason why I do this is that by Default the LV_TREE_ITEMS contains only the cell strings and not the tree item tags.

 

Well it is working only if I select one item to move / copy, but if I select two or more items, the <Drag Over> Event won't Trigger. Is it not allowed to set the Drag Data as Array, or do I do anything wrong?

 

Madottati 

0 Kudos
Message 1 of 2
(2,491 Views)
Solution
Accepted by topic author Madottati

I solved the Problem:

 

In the <Drag Starting?> Event I created an Array of drag data, whereas each element represents a tree tag. This is wrong.

The right way is to create only one element in the drag data, where the data Name is my user data Name, and the Array of tags has to be wired to the variant:

TreeDragData_TREE_TAGS.PNG

0 Kudos
Message 2 of 2
(2,478 Views)