Hi all,
I'm trying to get advanced functionality out of the tree control in
LV8. I want the user to be able to drag nodes around in the tree
to reorder them, but I'd like to be able to define which nodes in my
tree can be dragged where.
For example, consider the tree:
-Breakfast
-Eggs
-Bacon
-Lunch
-Club Sandwich
-Hamburger
-Dinner
-Fried Chicken
-Steak
I'm trying to find a way that the individual "food nodes" can be
dragged and dropped under any other food category, but not by itself or
as a child of another node. The main food categories (breakfast,
lunch, dinner) shouldn't move at all in the tree.
I currently can filter out the events for the "food categories" but
using the "Drag Starting?" filter event and then check the node's tag
and use the "disable event" terminal appropriately to throw out the drag
event.
However, is there a way to define where a node *can* or *can't* be
dropped? There's no "Drag Ending?" filter event that I can throw
out the drop event if it's not at a correct node.
I'm running out of ideas... Has anyone done anything like this or has any suggestions that I can use?
Thanks in advance!
~Jeff