[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: FormLayout

You should attach top of top composite to new FormAttachement(0,0);
Then attach middle to top new FormAttachement(top, margin);
Then attach bottom to middel composite new FormAttachement(middle, margin);
then attach bottom of bottom to bottom of parent compsoite new FormAttachement(100,margin);
Do not attach bottom of top composite to middel composite and do not attach bottom of middel composite to top of bottom composite.
At Last set a default size for all composites beyond which they cannot be collapsed further.


Regards
Stefan

Stephen wrote:
Thank you for your reply.
I have tried in such way. There's no problem when the parent composite is not resized. When the parent composite is rezied, the bottom composite went to the under of top composite.


--
Thanks;
Stephen