Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Get a View's actual location
Get a View's actual location [message #466943] Thu, 19 January 2006 16:04 Go to next message
Eclipse UserFriend
Originally posted by: bremmi.yahoo.com

I need to bring up a shell (modal dialog) that is exactly covering my
View. I have not had any luck figuring out how to do a getBounds() on my
View that tells me the actual location of the view, because when I create
a new Shell its position will be relative to the Display, not relative to
my View.

Thanks,
- Ryan
Re: Get a View's actual location [message #466984 is a reply to message #466943] Fri, 20 January 2006 15:33 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Have a look at Display.map(). This allows you to map between Control
relative coordinates and Display relative coordinates (in both directions).

"Ryan C" <bremmi@yahoo.com> wrote in message
news:684959399e4ed035265e0e2feb6fa49e$1@www.eclipse.org...
>I need to bring up a shell (modal dialog) that is exactly covering my View.
>I have not had any luck figuring out how to do a getBounds() on my View
>that tells me the actual location of the view, because when I create a new
>Shell its position will be relative to the Display, not relative to my
>View.
>
> Thanks,
> - Ryan
>
Re: Get a View's actual location [message #467025 is a reply to message #466984] Mon, 23 January 2006 14:32 Go to previous message
Eclipse UserFriend
Originally posted by: bremmi.yahoo.com

Veronika Irvine wrote:
> Have a look at Display.map(). This allows you to map between Control
> relative coordinates and Display relative coordinates (in both directions).

That's exactly what I was looking for - many thanks.

- Ryan
Previous Topic:SWT.FULL_SELECTION style, bug?
Next Topic:Mutibility in IEditorInput (should it or shouldn't it)
Goto Forum:
  


Current Time: Tue Nov 21 12:05:40 GMT 2017

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

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