|DND in a EditPartViewer [message #216805]
||Wed, 24 May 2006 19:43
Originally posted by: clau349.hotmail.com|
In my RCP application, i got a treeViewer in a view and i have a EditPartViewer. My EditPartViewer contains some figures... I try to drag an object from my tree to any figure in my EditPartViewer, which implements <i>addDropTargetListener</i>(). I need the mouse location to call the funtion EditPartViewer.findObjectAt(Point point) so i can find the figure and drop in it the object from the treeViewer.
I can find that position calling the function getLocationDrop() in my DropTargetListener. But my problem is that my EditPartViewer got vertical and horizontal scrolls. So the position that the function
getLocationDrop() gives me does not take care of it.
is There a way to get the mouse cursor position in my EditPartViewer that give me the real position?
Thanks for any help or advice you can give me...
Powered by FUDForum
. Page generated in 0.02486 seconds