Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Richtext single lines of mixed font overwriting other controls

edited September 2002 in General
I have a ppRichtext control that displays text of mixed font size and color
etc. for each record of the report. I would like to shift the memo control
beneath it relative to the streachable size of the richtext.

However, the richtext is often only a single line of text, and there is a
bug (RB, Windows??) which causes the size of single lines of mixed size
richtext to be wrongly measured. This results in the richtext overwriting
both the memo control and the report footer - the report looks a mess.

As a half-fix I have fixed the position of the memo control beneath it (not
shift relative), adequate if the richtext is only one line, and it is inside
a keeptogether region with some other controls which prevents the richtext
from overwriting the footer. However, sometimes the richtext is longer and
wraps onto a second line and I am back to overwriting the control beneath
again.....

Can anyone suggest a way to calculate the real size of the richtext, and
then adjust the position of the memo beneath it? Or a way to tell that there
is only a single line of richtext and hence turn the memo shiftrelative off,
leaving shiftrelative working for the multiple line richtext?

RB6.03 and D5

Thanks.

Comments

This discussion has been closed.