Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » swt drag and drop
swt drag and drop [message #550317] Thu, 29 July 2010 21:24
Lidder is currently offline LidderFriend
Messages: 46
Registered: July 2009
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.
Previous Topic:Widgets in OpenGL view
Next Topic:Treeviewer performance problem
Goto Forum:

Current Time: Sat Jan 25 10:37:47 GMT 2020

Powered by FUDForum. Page generated in 0.01875 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top