|Re: DragAndDrop between two view [message #228168 is a reply to message #227777]
||Sat, 16 December 2006 21:44
Originally posted by: none.unknown.com|
You want to convert display-relative coordinates to control-relative? See
Control#toControl(). BTW, this is an SWT question.
"Patrick" <Patrick.Tessier@cea.fr> wrote in message
> I have made a editor with to view :
> - GraphicalEditorWithFlyoutPalette
> - ContentOutlinePage
> I have added between these views a drag and drop.
> When write the drop ( to move an element from the contentOutlinepage to
> the GraphicalEditorWithFlyoutPalette), I have a problem with coordinates.
> The DropTargetEvent has an absolutePosition (Display position)
> and i cannot succeed to calculate the relative position in the context the
> I try to see coodinate of the graphicalViewer but its position is 0,0 . I
> cannot have its absolute coordinate.
> Can you say me how to have relative position in the GraphicalEditor?
Powered by FUDForum
. Page generated in 0.02032 seconds