Exponent wordwrap issue

General TRichView support forum. Please post your questions here
Post Reply
jwkerns
Posts: 15
Joined: Sun Mar 05, 2006 11:17 pm

Exponent wordwrap issue

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply