Multiple DropTargets [message #465644] |
Fri, 16 December 2005 01:32 |
Eclipse User |
|
|
|
Originally posted by: dank.webreachinc.com
I have droptarget 1 and 2. I have dragsource 1 and 2. You can drag from
1 to 1 and from 2 to 2 but not 1 to 2 or 2 to 1 (when talking about
sources and targets respectively). In the drop method, I can check the
event.data to make sure that this action is ignored if incorrect but the
cursor still shows up as a valid drop point. I'd like the cursor to turn
into the circle with a line through it if you drag 1 to 2.
This should be as simple as checking the event.data in the dragOver()
method (or any of the other provided methods I can implement), but for
some reason the event.data is always null in these methods. Therefore I'm
stumped. I don't know how to accomplish this task.
Thanks,
Dan
|
|
|
|
Powered by
FUDForum. Page generated in 0.03203 seconds