Skip to main content



      Home
Home » Eclipse Projects » GEF » placing dialog relative to editor
placing dialog relative to editor [message #79306] Wed, 14 May 2003 10:26 Go to next message
Eclipse UserFriend
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 10:38 Go to previous messageGo to next message
Eclipse UserFriend
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
>
>
Re: placing dialog relative to editor [message #79396 is a reply to message #79351] Wed, 14 May 2003 10:46 Go to previous message
Eclipse UserFriend
Originally posted by: Matthias.Peschel.intershop.de

Hi Randy,

thanx, it works fine.

Matthias
Previous Topic:Is there any replacement for NodeEditPolicy?
Next Topic:Connections clipping and "re-anchoring"
Goto Forum:
  


Current Time: Wed Apr 02 22:49:02 EDT 2025

Powered by FUDForum. Page generated in 0.02708 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top