Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Too long text on a Label
Too long text on a Label [message #447912] Tue, 21 December 2004 20:21 Go to next message
Eclipse UserFriend
Originally posted by: ramim.kauhajoki.fi

Hi,

Quick question...

I have a Label-SWT-widget on my Eclipse Editor (own editor). The label is
on a Composite-widget.

Now when I put a long string to that label, the label becames too wide and
it does not fit into the screen anymore.

Is there any way to 'wrap' the text in a Label into multiple rows? or do I
have to generate a new Label for each (let's say) 50 characters?

- noon -
Re: Too long text on a Label [message #447949 is a reply to message #447912] Wed, 22 December 2004 07:28 Go to previous messageGo to next message
cloudor Mising name is currently offline cloudor Mising nameFriend
Messages: 34
Registered: July 2009
Member
Hi,

You should try with TableWrapLayout.

See
http://dev.eclipse.org/viewcvs/index.cgi/pde-ui-home/working /EclipseForms/EclipseForms.html?rev=1.4

noon wrote:
> Hi,
> Quick question...
>
> I have a Label-SWT-widget on my Eclipse Editor (own editor). The label
> is on a Composite-widget.
>
> Now when I put a long string to that label, the label becames too wide
> and it does not fit into the screen anymore.
>
> Is there any way to 'wrap' the text in a Label into multiple rows? or do
> I have to generate a new Label for each (let's say) 50 characters?
>
> - noon -
Re: Too long text on a Label [message #447956 is a reply to message #447949] Wed, 22 December 2004 12:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ramim.kauhajoki.fi

Hi,

Thanks for the tip!!
I guess this Layout is implemented only in Eclipse R3 not in Release 2.x
!!? Atleast I wasn't able to find it from the R2 API.

- noon -

Cloudor Pu wrote:

> Hi,

> You should try with TableWrapLayout.

> See
>
http://dev.eclipse.org/viewcvs/index.cgi/pde-ui-home/working /EclipseForms/EclipseForms.html?rev=1.4

> noon wrote:
>> Hi,
>> Quick question...
>>
>> I have a Label-SWT-widget on my Eclipse Editor (own editor). The label
>> is on a Composite-widget.
>>
>> Now when I put a long string to that label, the label becames too wide
>> and it does not fit into the screen anymore.
>>
>> Is there any way to 'wrap' the text in a Label into multiple rows? or do
>> I have to generate a new Label for each (let's say) 50 characters?
>>
>> - noon -
Re: Too long text on a Label [message #447959 is a reply to message #447912] Wed, 22 December 2004 13:10 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
In 3.1, GridLayout and FormLayout support wrapping.

"noon" <ramim@kauhajoki.fi> wrote in message
news:cqa0kb$sgv$1@www.eclipse.org...
> Hi,
> Quick question...
>
> I have a Label-SWT-widget on my Eclipse Editor (own editor). The label is
> on a Composite-widget.
>
> Now when I put a long string to that label, the label becames too wide and
> it does not fit into the screen anymore.
>
> Is there any way to 'wrap' the text in a Label into multiple rows? or do I
> have to generate a new Label for each (let's say) 50 characters?
>
> - noon -
Previous Topic:About GridLayout Source
Next Topic:Reserved Edit with the eclipse CVS plugin
Goto Forum:
  


Current Time: Sat Oct 24 20:20:34 GMT 2020

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

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

Back to the top