Skip to main content



      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 11: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 10:33 Go to previous messageGo to next message
Eclipse UserFriend
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 09: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: Fri Jul 04 23:58:28 EDT 2025

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

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

Back to the top