placing dialog relative to editor [message #79306] |
Wed, 14 May 2003 14:26 |
Eclipse User |
|
|
|
Originally posted by: Matthias.Peschel.intershop.de
Hi NG,
I want to show a dialog on a certain point in an editor. I already have the
relative coordinates for the editor where to display the dialog. But when I
specify those coordinates in MyDialog.getInitialLocation(), they are
interpreted as absolute coordinates (depending on the eclipse window).
Thus my question is how to determine the location (null point) of my editor?
If I have it, I could simply add my relative coordinates and the dialog is
displayed at the correct point. Or is it the complete wrong way?
Thanx a lot,
Matthias
|
|
|
Re: placing dialog relative to editor [message #79351 is a reply to message #79306] |
Wed, 14 May 2003 14:38 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Use Control.toDisplay(Point) to determine where your control is in absolute
coordinates.
"Matthias Peschel" <Matthias.Peschel@intershop.de> wrote in message
news:b9tjlu$3v9$1@rogue.oti.com...
> Hi NG,
>
> I want to show a dialog on a certain point in an editor. I already have
the
> relative coordinates for the editor where to display the dialog. But when
I
> specify those coordinates in MyDialog.getInitialLocation(), they are
> interpreted as absolute coordinates (depending on the eclipse window).
>
> Thus my question is how to determine the location (null point) of my
editor?
> If I have it, I could simply add my relative coordinates and the dialog is
> displayed at the correct point. Or is it the complete wrong way?
>
> Thanx a lot,
> Matthias
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03167 seconds