PDA

View Full Version : Tree Control bug


THiRD
07-01-2008, 11:04 PM
I'm using two tree controls for dragging and dropping between each other. My problem is that when i grab a node to drag the dragSource seems to change on rollover. For example if i have

Music
Rock
Artist1
Artist2
Rap
Artist3


when i grab artist2 and try to drag it the dragsource will change to Rap and then artist3 if i move my mouse down while dragging. This makes it really hard to drag out of a tree unless you go directly horizontal otherwise it will switch which node i'm grabbing. Is there a fix for this?

mattb
07-08-2008, 03:05 AM
I have a drag/drop system setup in a Tree control and it works fine... if you're using the "standard" system of calling DragManager.doDrag in the mouseOver handler, the DragManager shouldn't initiate a new drag if one is already in place.

Can you post your code for us to review pls?