TABs not accounted for in 'natural' width (AreaWidth)?
Posted: Mon Aug 04, 2008 8:38 am
When calling AreaWidth or TextWidth or DocumentWidth of TCustomRVFormattedData that contains TAB characters, then the resulting value is less than the actual 'natural' width of the content. The difference seems to be width of the TABs, their width seems to be omitted.
I have set TRichViewEdit to
How can I get the 'natural' width of RichView content that has TABs?
(I'm using RichView1.9)
Thanks! -- Lutz
I have set TRichViewEdit to
Code: Select all
Options := Options-[rvoClientTextWidth];
Style.ParaStyles[count].Options := Style.ParaStyles[count].Options+[rvpaoNoWrap];
MinTextWidth := 0;
MaxTextWidth := 0;
Width := 0;
ReFormat;
(I'm using RichView1.9)
Thanks! -- Lutz