Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Size of View
Size of View [message #443038] Thu, 16 September 2004 21:57 Go to next message
Greg Roberts is currently offline Greg RobertsFriend
Messages: 88
Registered: July 2009
Member
I would like to get the size of my view programmatically so I can
determine some things about it at runtime.
Is there a way to do this?
I can get the client area and what should be the size of the view - but
the numbers returned are not correct
The return values are either 0 or my screen resolution.

I want the actual size of my view. Can this be done.

Thanks.

Greg
Re: Size of View [message #443063 is a reply to message #443038] Fri, 17 September 2004 22:38 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Which API are you calling?

"Greg" <gwrobert@us.ibm.com> wrote in message
news:cid27n$oev$1@eclipse.org...
> I would like to get the size of my view programmatically so I can
> determine some things about it at runtime.
> Is there a way to do this?
> I can get the client area and what should be the size of the view - but
> the numbers returned are not correct
> The return values are either 0 or my screen resolution.
>
> I want the actual size of my view. Can this be done.
>
> Thanks.
>
> Greg
>
Previous Topic:Fire Listener automatically
Next Topic:Hatching
Goto Forum:
  


Current Time: Fri Apr 19 03:02:02 GMT 2024

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

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

Back to the top