Skip to main content



      Home
Home » Eclipse Projects » GEF » Word Wrap with \r\n
Word Wrap with \r\n [message #127409] Thu, 15 April 2004 05:22 Go to next message
Eclipse UserFriend
Originally posted by: sellai.yahoo.com

Hi,
I have a figure which functions like the label in the logic example.
However, in my case it word wraps. I've discovered that if i don't set any
layout manager for the TextFlow, it will not recognize "\r\n" etc... If i
set the layout manager as "SimpleTextLayout", it works fine. But is there
a layout that allows both scenario? so that i don't have to set different
layout for different part of the input text?

Thanks in advance.

Regards,
June
Re: Word Wrap with \r\n [message #127445 is a reply to message #127409] Thu, 15 April 2004 10:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Have you tried the "ParagraphTextLayout"? You may also want to take a look
at the label in the current Logic Example (3.0 Stream). It allows for direct
editing of text including wrapping and hard line breaks.

"June" <sellai@yahoo.com> wrote in message news:c5lk9j$amr$1@eclipse.org...
> Hi,
> I have a figure which functions like the label in the logic example.
> However, in my case it word wraps. I've discovered that if i don't set any
> layout manager for the TextFlow, it will not recognize "\r\n" etc... If i
> set the layout manager as "SimpleTextLayout", it works fine. But is there
> a layout that allows both scenario? so that i don't have to set different
> layout for different part of the input text?
>
> Thanks in advance.
>
> Regards,
> June
>
Re: Word Wrap with rn [message #127586 is a reply to message #127445] Thu, 15 April 2004 21:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sellai.yahoo.com

I tried ParagraphTextLayout as well, but it was no use. I think it is the
default layout manager for TextFlow....

Whitney Sorenson wrote:

> Have you tried the "ParagraphTextLayout"? You may also want to take a look
> at the label in the current Logic Example (3.0 Stream). It allows for direct
> editing of text including wrapping and hard line breaks.

> "June" <sellai@yahoo.com> wrote in message news:c5lk9j$amr$1@eclipse.org...
> > Hi,
> > I have a figure which functions like the label in the logic example.
> > However, in my case it word wraps. I've discovered that if i don't set any
> > layout manager for the TextFlow, it will not recognize "rn" etc... If i
> > set the layout manager as "SimpleTextLayout", it works fine. But is there
> > a layout that allows both scenario? so that i don't have to set different
> > layout for different part of the input text?
> >
> > Thanks in advance.
> >
> > Regards,
> > June
> >
Re: Word Wrap with rn [message #127669 is a reply to message #127586] Fri, 16 April 2004 10:32 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Have you tried a new build of GEF, or looked at the new label in the Logic
Example?

"June" <sellai@yahoo.com> wrote in message news:c5nd2c$l03$1@eclipse.org...
> I tried ParagraphTextLayout as well, but it was no use. I think it is the
> default layout manager for TextFlow....
>
> Whitney Sorenson wrote:
>
> > Have you tried the "ParagraphTextLayout"? You may also want to take a
look
> > at the label in the current Logic Example (3.0 Stream). It allows for
direct
> > editing of text including wrapping and hard line breaks.
>
> > "June" <sellai@yahoo.com> wrote in message
news:c5lk9j$amr$1@eclipse.org...
> > > Hi,
> > > I have a figure which functions like the label in the logic
example.
> > > However, in my case it word wraps. I've discovered that if i don't set
any
> > > layout manager for the TextFlow, it will not recognize "rn" etc... If
i
> > > set the layout manager as "SimpleTextLayout", it works fine. But is
there
> > > a layout that allows both scenario? so that i don't have to set
different
> > > layout for different part of the input text?
> > >
> > > Thanks in advance.
> > >
> > > Regards,
> > > June
> > >
>
>
Re: Word Wrap with \r\n [message #127729 is a reply to message #127409] Fri, 16 April 2004 10:01 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Newlines were not handled in 2.1 I believe. What you have to do, is create
a BlockFlow for each paragraph.

"June" <sellai@yahoo.com> wrote in message news:c5lk9j$amr$1@eclipse.org...
> Hi,
> I have a figure which functions like the label in the logic example.
> However, in my case it word wraps. I've discovered that if i don't set any
> layout manager for the TextFlow, it will not recognize "\r\n" etc... If i
> set the layout manager as "SimpleTextLayout", it works fine. But is there
> a layout that allows both scenario? so that i don't have to set different
> layout for different part of the input text?
>
> Thanks in advance.
>
> Regards,
> June
>
Previous Topic:button field in MouseMotionListener.mouseDragged() always 0
Next Topic:Newbie: Resize in draw2d
Goto Forum:
  


Current Time: Sat Jul 26 01:02:38 EDT 2025

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

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

Back to the top