Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » swt drag and drop
swt drag and drop [message #550317] Thu, 29 July 2010 17:24
Eclipse UserFriend
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:Widgets in OpenGL view
Next Topic:Treeviewer performance problem
Goto Forum:
  


Current Time: Sun Aug 31 01:15:41 EDT 2025

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

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

Back to the top