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
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
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
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 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
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
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"