swt drag and drop [message #550317] |
Thu, 29 July 2010 17:24 |
Eclipse User |
|
|
|
I am using SWT drag and drop with a gef editor. The user can drag items from a tree in a view and drop on the gef figures on the editor. The figure have a white background to start with.
goal: when an item is dragged over a figure, it's background color should change to blue. When the item has passed over the figure, it's background should change back to white.
I can do this by using the setBackgroundColor() in the figure class. The problem is that the target area right below the source data (one being dragged) is not being colored. It remains white. I tried making the source image transparent, but does not help. It seems like the source is trying to draw itself at the same time the target background is set and there is a conflict.

Thank you for your help.
|
|
|
Powered by
FUDForum. Page generated in 0.03517 seconds