Re: [Gambas-user] R: Fitting RichtText into several limited areas

2015-12-08 Thread Rolf-Werner Eilert
Thank you very much for this code. It shows me some tricks I wasn't aware of, and I could understand how you would "measure" the point where to cut the text to spread it on several boxes. But there is one thing this code does not consider, and that is the way tagged text is interpreted. As an

Re: [Gambas-user] R: Fitting RichtText into several limited areas

2015-12-08 Thread Fabien Bodard
hum the rich text does not interpret such so complex things. the text line spliting must be only on the tag. then it's true tat you can have sone tgings like mytext the other line and in this case you will hve a problem... to analyse this kind of case you must use the gb.xml component. it

Re: [Gambas-user] R: Fitting RichtText into several limited areas

2015-12-05 Thread Fabien Bodard
So this is my two cents. It's not optimized i should do better if i've time. I will use something like this in a near time for reportLabels. Regards -- Fabien Bodard 2015-12-04 13:04 GMT+01:00 Rolf-Werner Eilert : > I don't think so, because it describes the wideth

Re: [Gambas-user] R: Fitting RichtText into several limited areas

2015-12-05 Thread Fabien Bodard
Hoops an insidious bug . 2015-12-05 10:19 GMT+01:00 Fabien Bodard : > So this is my two cents. It's not optimized i should do better if i've > time. I will use something like this in a near time for reportLabels. > > Regards > -- > Fabien Bodard > > 2015-12-04 13:04 GMT+01:00

Re: [Gambas-user] R: Fitting RichtText into several limited areas

2015-12-05 Thread Fabien Bodard
re OOpps, I've just see i've forgotten to manage when one line not fit in the area. 2015-12-05 11:04 GMT+01:00 Fabien Bodard : > Hoops an insidious bug . > > 2015-12-05 10:19 GMT+01:00 Fabien Bodard : >> So this is my two cents. It's not optimized i

Re: [Gambas-user] R: Fitting RichtText into several limited areas

2015-12-04 Thread Rolf-Werner Eilert
I don't think so, because it describes the wideth of a single line of richtext. Paint.Richtext or Paint.DrawRichtext accept a Height for the textframe, but it is practically unused. The function goes on drawing beyond this point. This is where you would have to start helping. Let's see what

[Gambas-user] R: Fitting RichtText into several limited areas

2015-12-04 Thread Ru Vuott
Hello, ...could .Font.RichTextWidth() function help you ? vuott Ven 4/12/15, Rolf-Werner Eilert ha scritto: Oggetto: [Gambas-user] Fitting RichtText into several limited areas A: "mailing list for gambas users"