[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: can i get the 'absolute' shell relative x and y values of a MouseEvent?
|
See Display.getCursorLocation and Control.toControl.
Knut
"Moritz Angermann" <moritz.angermann@xxxxxxx> wrote in message news:b7mg3q$bmu$1@xxxxxxxxxxxxxxxx
> i have the following problem:
>
> i have two tables beneath each other in a sash.
> now i want to 'fake' drang'n'drop one item form the one table into the
> other table.
>
> ( but i actually just want to get the item from table1 and from table2 )
> so i can work with them.
> thus it's no real drag n drop.
>
> i tryed to get this done with the event's X/Y position when the mouse is
> pressed and released.
> but it looks like if i press the mousebutton on table1 and release it on
> table2, table1 gets the release event. thus i can't deal with the x/y
> values of the element, since they are relative to table1 not table2.
>
> thanks in advance!
>
> reg.
> moritz
>