Page 1 of 1

Exponent wordwrap issue

Posted: Fri Sep 15, 2006 2:41 am
by jwkerns
We add a line of text using AddNL( text, tstyle1, pstyle1). Then we add a
number that is an exponent using AddNL( exponenttext, exponentstyle,
-1). Wordwrap causes the line to break at the exponent, but we need the
exponent to stay with the last value from the first line of text, or it
does not make sense. How do we make RichView break at a space or period? Is this code that can be fixed? Where is it in the source?

Posted: Mon Sep 18, 2006 6:45 pm
by Sergey Tkachenko
Sorry, it cannot be fixed by property settings or like this. TrichView breaks lines between items (text of different styles) like between spaces.
It will be fixed in one of future versions, but I cannot say when it will be completed.
Line wrapping is in FormatLine procedure (CRVFData.pas), the most complicated procedure in the component.