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
Member
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.

http://i28.tinypic.com/2mzy7id.jpg

Thank you for your help.
Previous Topic:Maven repo for SWT 3.5?
Next Topic:Extra row and column in a SWT Table
Goto Forum:
  


Current Time: Fri Oct 20 16:27:18 GMT 2017

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

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