Skip to main content



      Home
Home » Eclipse Projects » GEF » How to wrap label text?
How to wrap label text? [message #16251] Tue, 06 August 2002 08:35 Go to next message
Eclipse UserFriend
Originally posted by: tomas.pinos.atlas.cz

Hi,

is there a way how to force label to wrap its text (supposing the label
figure is a child figure of a rectangle)? Here's what I get - one line label
with truncated text:
------------------
| text1 text2 te...|
------------------
Here's what I'd like to get - "multilined" label.
------------------
| text1 text2 |
| text3
------------------
Or is this a problem of layout manager?

Another question - as Label figure corresponds to SWT Label control, is
there is a figure corresponding to SWT Text control?

Thanks!

Tomas
Re: How to wrap label text? [message #16278 is a reply to message #16251] Tue, 06 August 2002 15:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.spam.com

This is not possible with the Label figure. You can insert newlines in the
text, but not automatic wrapping.

We have some figures that are not released that perform this function. Are
you interested in helping us test and polish these classes? There are
layout inconsistencies which need to be resolved.

"Tomas Pinos" <tomas.pinos@atlas.cz> wrote in message
news:aiofka$l4q$1@rogue.oti.com...
> Hi,
>
> is there a way how to force label to wrap its text (supposing the label
> figure is a child figure of a rectangle)? Here's what I get - one line
label
> with truncated text:
> ------------------
> | text1 text2 te...|
> ------------------
> Here's what I'd like to get - "multilined" label.
> ------------------
> | text1 text2 |
> | text3
> ------------------
> Or is this a problem of layout manager?
>
> Another question - as Label figure corresponds to SWT Label control, is
> there is a figure corresponding to SWT Text control?
>
> Thanks!
>
> Tomas
>
>
>
Re: How to wrap label text? [message #16291 is a reply to message #16278] Tue, 06 August 2002 15:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tomas.pinos.atlas.cz

Thanks for the offer. Yes, I would like to help. What do I need to do?

Tomas


"Randy Hudson" <hudsonr@spam.com> wrote in message
news:aip6u2$5av$1@rogue.oti.com...
> This is not possible with the Label figure. You can insert newlines in
the
> text, but not automatic wrapping.
>
> We have some figures that are not released that perform this function.
Are
> you interested in helping us test and polish these classes? There are
> layout inconsistencies which need to be resolved.
>
> "Tomas Pinos" <tomas.pinos@atlas.cz> wrote in message
> news:aiofka$l4q$1@rogue.oti.com...
> > Hi,
> >
> > is there a way how to force label to wrap its text (supposing the label
> > figure is a child figure of a rectangle)? Here's what I get - one line
> label
> > with truncated text:
> > ------------------
> > | text1 text2 te...|
> > ------------------
> > Here's what I'd like to get - "multilined" label.
> > ------------------
> > | text1 text2 |
> > | text3
> > ------------------
> > Or is this a problem of layout manager?
> >
> > Another question - as Label figure corresponds to SWT Label control, is
> > there is a figure corresponding to SWT Text control?
> >
> > Thanks!
> >
> > Tomas
> >
> >
> >
>
>
Re: How to wrap label text? [message #16357 is a reply to message #16291] Thu, 08 August 2002 17:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.spam.com

First, you should probably subscribe to the GEF mailing list if you haven't
done so already.

We are renaming the packages tonight, and moving all future development into
the eclipse CVS server.

It's not clear to me how "sandbox" development is supposed to be done. We
don't want people coding against classes before they are considered stable.
For now, I will place the Text figures in the Draw2D Test project. It is a
small set of Figures and layouts, and a test class that is runnable.

"Tomas Pinos" <tomas.pinos@atlas.cz> wrote in message
news:aip8ab$64c$1@rogue.oti.com...
> Thanks for the offer. Yes, I would like to help. What do I need to do?
>
> Tomas
>
>
> "Randy Hudson" <hudsonr@spam.com> wrote in message
> news:aip6u2$5av$1@rogue.oti.com...
> > This is not possible with the Label figure. You can insert newlines in
> the
> > text, but not automatic wrapping.
> >
> > We have some figures that are not released that perform this function.
> Are
> > you interested in helping us test and polish these classes? There are
> > layout inconsistencies which need to be resolved.
> >
> > "Tomas Pinos" <tomas.pinos@atlas.cz> wrote in message
> > news:aiofka$l4q$1@rogue.oti.com...
> > > Hi,
> > >
> > > is there a way how to force label to wrap its text (supposing the
label
> > > figure is a child figure of a rectangle)? Here's what I get - one line
> > label
> > > with truncated text:
> > > ------------------
> > > | text1 text2 te...|
> > > ------------------
> > > Here's what I'd like to get - "multilined" label.
> > > ------------------
> > > | text1 text2 |
> > > | text3
> > > ------------------
> > > Or is this a problem of layout manager?
> > >
> > > Another question - as Label figure corresponds to SWT Label control,
is
> > > there is a figure corresponding to SWT Text control?
> > >
> > > Thanks!
> > >
> > > Tomas
> > >
> > >
> > >
> >
> >
>
>
Re: How to wrap label text? [message #16745 is a reply to message #16291] Fri, 09 August 2002 10:55 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.spam.com

Please connect anonymously to /home/tools @ CVS server "dev.eclipse.org".

In the HEAD stream, load org.eclipse.draw2d.test.
You could optionally load draw2d as source (or import as binary project),
and you will need SWT as well.

Run the FlowDemo class. The current problems have to do with calculation of
the scrollbars. I think I know what the problems are.

"Tomas Pinos" <tomas.pinos@atlas.cz> wrote in message
news:aip8ab$64c$1@rogue.oti.com...
> Thanks for the offer. Yes, I would like to help. What do I need to do?
>
> Tomas
>
>
> "Randy Hudson" <hudsonr@spam.com> wrote in message
> news:aip6u2$5av$1@rogue.oti.com...
> > This is not possible with the Label figure. You can insert newlines in
> the
> > text, but not automatic wrapping.
> >
> > We have some figures that are not released that perform this function.
> Are
> > you interested in helping us test and polish these classes? There are
> > layout inconsistencies which need to be resolved.
> >
> > "Tomas Pinos" <tomas.pinos@atlas.cz> wrote in message
> > news:aiofka$l4q$1@rogue.oti.com...
> > > Hi,
> > >
> > > is there a way how to force label to wrap its text (supposing the
label
> > > figure is a child figure of a rectangle)? Here's what I get - one line
> > label
> > > with truncated text:
> > > ------------------
> > > | text1 text2 te...|
> > > ------------------
> > > Here's what I'd like to get - "multilined" label.
> > > ------------------
> > > | text1 text2 |
> > > | text3
> > > ------------------
> > > Or is this a problem of layout manager?
> > >
> > > Another question - as Label figure corresponds to SWT Label control,
is
> > > there is a figure corresponding to SWT Text control?
> > >
> > > Thanks!
> > >
> > > Tomas
> > >
> > >
> > >
> >
> >
>
>
Previous Topic:PACKAGES have been renamed to org.eclipse... (More)
Next Topic:Rotate Action
Goto Forum:
  


Current Time: Wed May 07 03:18:30 EDT 2025

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

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

Back to the top