[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: size of a composite
|
- From: Friederich Kupzog <friederich@xxxxxxxxx>
- Date: Tue, 29 Nov 2005 17:44:02 +0100
- Newsgroups: eclipse.platform.swt
- Organization: Kupzog Elektronik&Software
- User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
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