[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: problems with my composite

Grant Gayed schrieb:
setSize() sets a Control's size, but if you are using layouts to lay out
your controls then size values set with setSize() will be overwritten by the
layout when it does its work.  If you want to specify control sizes while
using a layout then you should provide this in a layout data object.  For
example, if you're using GridLayout then you can set a GridData on it to
specify control sizes.  Most other layouts have similar corresponding layout
data objects.

Grant

Thanks Grant,
I'm currently using FormLayout for both the main composite and the inner composites. I could change the main Layout to Grid but I think that does not matter.
If I understand this right I have to use height and width on FormData corresponding to the composites. Then I have to calculate the inner height first, but I think this would be no problem ... thanks.


Ilja