[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Drag'n'Drop Event x,y ?

toControl converts the point to be relative to the *client* area of the
control.
I guess a tables client area is inside the table headers.

I would be surprised if you need a point relative to something other than
the client area.  Are you saying that methods like findItemAt(x, y) don't
take client relative coordinates?

when replying, post only to  "eclipse.platform.swt" newsgroup

"Moritz Angermann" <moritz.angermann@xxxxxxx> wrote in message
news:b7mp6t$jk4$1@xxxxxxxxxxxxxxxx
> thanks. but now this:
> the table reports his header are 29px high.
> and i get the relative cooridantes ( 0 | 25 )
> what might cause that?
> ( no, the mouse is not over the headers! )
>
> reg.
>   moritz
> Randy Hudson wrote:
> > See control.toControl(Point)
> > Maybe this method should have been named "fromDisplay", since the
inverse is
> > "toDisplay"
> >
> >
> > "Moritz Angermann" <moritz.angermann@xxxxxxx> wrote in message
> > news:b7mjgq$eib$1@xxxxxxxxxxxxxxxx
> >
> >>is there a way to the the x,y coordinates of a DND event relative to
> >>the widget wich has the DND event listener?
> >>
> >>in eclipse 2.1
> >>the 'Tasks' table does that, anyone?
> >>
> >>reg.
> >>  moritz
> >>
> >
> >
> >
>