Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Making a Text resizing with it's composite
Making a Text resizing with it's composite [message #453328] Tue, 05 April 2005 12:52 Go to next message
Zoki Missing name is currently offline Zoki Missing nameFriend
Messages: 9
Registered: July 2009
Junior Member
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 #453331 is a reply to message #453328] Tue, 05 April 2005 13:19 Go to previous messageGo to next message
Zoki Missing name is currently offline Zoki Missing nameFriend
Messages: 9
Registered: July 2009
Junior Member
On Tue, 05 Apr 2005 14:52:48 +0200, Zoran Pjevic

I have added another Form Layout to the composite and added then the
Text.

Now it's fine.

Regards,
Zoran

<zoran.pjevic@vega.de> wrote:

>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 #453451 is a reply to message #453328] Tue, 05 April 2005 22:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amayen.gmx.de

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


"Zoran Pjevic" <zoran.pjevic@vega.de> schrieb im Newsbeitrag
news:c22551djj23mt3u6lc46tea47ussguhj11@4ax.com...
> 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 13:34 Go to previous message
Zoki Missing name is currently offline Zoki Missing nameFriend
Messages: 9
Registered: July 2009
Junior Member
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
>
>
Previous Topic:TableTreeViewer and CheckBoxCellEditor working but...
Next Topic:Table Tree - Parent of the selected element.
Goto Forum:
  


Current Time: Fri Apr 19 10:31:36 GMT 2024

Powered by FUDForum. Page generated in 0.01816 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top