size of a composite [message #464752] |
Tue, 29 November 2005 14:13 |
Eclipse User |
|
|
|
Originally posted by: katharinas_mail.gmx.de
I'm simply trying to get the size of a composite. I tried getBounds(),
getClientArea() and getSize() but all of their ints (eg rect.width)
returns 0. Does anyone know what I'm doing wrong?
Thanks in advance.
|
|
|
Re: size of a composite [message #464762 is a reply to message #464752] |
Tue, 29 November 2005 16:44 |
Eclipse User |
|
|
|
Originally posted by: friederich.kupzog.de
Hi Karei,
this depends on when you are calling these functions. If you call them
before the shell is layouted, you get 0. You can only make use of these
functions when the widgets are layouted.
Hope that helped,
Friederich
Karei wrote:
> I'm simply trying to get the size of a composite. I tried getBounds(),
> getClientArea() and getSize() but all of their ints (eg rect.width)
> returns 0. Does anyone know what I'm doing wrong?
>
> Thanks in advance.
--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03294 seconds