[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: size of a composite

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