placing dialog relative to editor [message #79306] |
Wed, 14 May 2003 14:26 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.04077 seconds