Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Text wrap
Text wrap [message #142717] Wed, 14 July 2004 07:00 Go to next message
Eclipse UserFriend
Originally posted by: josep.bsil.com

Hi ,

My figure class extends FlowPage.
When i set a text to the this using setText method
It is displaying the text but is not able to interpret
new line character,So all the text comes in one line.

In some PC it is working properly.

Can somebody help us to solve this.

Thanks in Advance,
Jose
Re: Text wrap [message #142944 is a reply to message #142717] Fri, 16 July 2004 06:16 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
That's because GC.drawString() and stringExtent() are being using for
TextFlow, instead of drawText() and textExtent(). Open a bug report.

"Jose paul" <josep@bsil.com> wrote in message
news:cd2lls$h2i$1@eclipse.org...
> Hi ,
>
> My figure class extends FlowPage.
> When i set a text to the this using setText method
> It is displaying the text but is not able to interpret
> new line character,So all the text comes in one line.
>
> In some PC it is working properly.
>
> Can somebody help us to solve this.
>
> Thanks in Advance,
> Jose
>
>
Re: Text wrap [message #143020 is a reply to message #142944] Fri, 16 July 2004 16:40 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

That should matter. The maximum fragment size checks for newlines (unix,
windows, and mac forms) first. So the text fragment for a line does not
include the newline characters, which means that using stringExtend
shouldn't matter. I think Whitney or Eric wrote the newline support. Try
inserting newlines via the palette customizer.

"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:cd7rom$u3$1@eclipse.org...
> That's because GC.drawString() and stringExtent() are being using for
> TextFlow, instead of drawText() and textExtent(). Open a bug report.
>
> "Jose paul" <josep@bsil.com> wrote in message
> news:cd2lls$h2i$1@eclipse.org...
> > Hi ,
> >
> > My figure class extends FlowPage.
> > When i set a text to the this using setText method
> > It is displaying the text but is not able to interpret
> > new line character,So all the text comes in one line.
> >
> > In some PC it is working properly.
> >
> > Can somebody help us to solve this.
> >
> > Thanks in Advance,
> > Jose
> >
> >
>
>
Previous Topic:UndoablePropertySheet with EMF ItemProviders
Next Topic:SWTGraphics & Rigth To Left applications
Goto Forum:
  


Current Time: Fri Apr 26 11:25:41 GMT 2024

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

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

Back to the top