Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to getLocation/getBounds relative to screen, not parent?
how to getLocation/getBounds relative to screen, not parent? [message #438471] Fri, 25 June 2004 09:05 Go to next message
Eclipse UserFriend
Originally posted by: yuraukar.hotmail.com

Is there a way to get the location of
a control relative to the screen, not
its parent?

Thanks. Yuraukar-
Re: how to getLocation/getBounds relative to screen, not parent? [message #438479 is a reply to message #438471] Fri, 25 June 2004 12:23 Go to previous messageGo to next message
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
Hi,

You could use toDisplay method from Control class.

Boby

"Yuraukar" <yuraukar@hotmail.com> wrote in message
news:cbgpsn$e1k$1@eclipse.org...
> Is there a way to get the location of
> a control relative to the screen, not
> its parent?
>
> Thanks. Yuraukar-
Re: how to getLocation/getBounds relative to screen, not parent? [message #438480 is a reply to message #438479] Fri, 25 June 2004 12:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yuraukar.hotmail.com

Thanks, that's it.
> Hi,
>
> You could use toDisplay method from Control class.
>
Re: how to getLocation/getBounds relative to screen, not parent? [message #438485 is a reply to message #438479] Fri, 25 June 2004 15:20 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Use Display.map().

"Robert Bacs" <boby@zerosoft.ro> wrote in message
news:cbh5fc$43i$1@eclipse.org...
> Hi,
>
> You could use toDisplay method from Control class.
>
> Boby
>
> "Yuraukar" <yuraukar@hotmail.com> wrote in message
> news:cbgpsn$e1k$1@eclipse.org...
> > Is there a way to get the location of
> > a control relative to the screen, not
> > its parent?
> >
> > Thanks. Yuraukar-
>
>
Previous Topic:window on top
Next Topic:refresh a View from another View
Goto Forum:
  


Current Time: Thu Apr 25 21:49:18 GMT 2024

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

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

Back to the top