cdasher
05-02-2008, 10:28 AM
What is the best way to create a Draggable from a tree (using TreeViewer) to do drag and drop. From previous posts (in old forum) I think I need to detect drag event (not sure you to do this from an item in the tree) then create a copy (since the icon and text is what I need, I guess I just create a ContentPanel and add the icon and text to it) then drag it to where I am and when dragt stop event fires (I assume when you stop dragging) I somehow find out what is under the mouse, do validation whatever, inform user that the drop is available, and then on mouse release, do something to show the drop has occured (like add icon to a datalist etc.) So the question is how do I get the drag event from a TreeItem in a Tree, I cannot seem to figure out what kind of Event (Tree or Component) to listen for or even if this is possible)