Making a Text resizing with it's composite [message #453328] |
Tue, 05 April 2005 08:52  |
Eclipse User |
|
|
|
Hello
I want to make a "TextArea" that fills my entire window and resize
with it.
I understand that I don't have to use the scrollableComposite, so I
took the nonscrollable Composite controlled by the FormLayout Manager
and sticked it's borders to the borders of the composite.
Then I have added the Text into the Composite, but how do I make it
resizing together with it's composite?
I am just switching from SWING to SWT, so any help would be welcome.
Thanks,
Zoran
|
|
|
|
|
Re: Making a Text resizing with it's composite [message #453466 is a reply to message #453451] |
Wed, 06 April 2005 09:34  |
Eclipse User |
|
|
|
On Wed, 6 Apr 2005 00:11:47 +0200, "Anatol Mayen" <amayen@gmx.de>
wrote:
Hi Anatol
Thanks for the hint.
I have replaced the FormLayout with the FillLayout, as I suppose it's
a lighter layout manager.
Regards,
Zoran
>Hi Zoran!
>
>You already got it working, but for your purpose its maybe better to just
>use FillLayout
>Have you looked at FillLayout?
>From the API:
>"Note that in a FillLayout, children are always the same size, and they fill
>all available space."
>
>Anatol Mayen
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.23415 seconds