Page 1 of 1

TRichViewEdit - Tab Characters

Posted: Fri Apr 05, 2013 4:46 pm
by Graham
If you have some text that contains Tab characters (not at the start of a paragraph). If I now vary the width of the RichEdit component, the width of the Tab characters change as well.

Bug or feature?

Posted: Fri Apr 05, 2013 8:09 pm
by Sergey Tkachenko
How can I reproduce it?

Posted: Mon Apr 08, 2013 8:15 am
by Graham
I will e-mail you a link to a video you can download to show the problem.

Posted: Mon Apr 08, 2013 9:53 am
by Sergey Tkachenko
I received your video. I did not understand your initial question.
Tab characters work as expected.

Their width varies - this is by design.
Right sides of (left-aligned) tab characters are set to the closest "tab stop". So tab characters do not have their width defined.

If the paragraph does not have specified tab stops (in RVStyle.ParaStyles.Tabs), tab stops are set in every RVStyle.DefTabWidth pixels (or twips).

Posted: Tue Apr 09, 2013 9:29 am
by Graham
OK, if that's how it is then sobeit. I just expected the Tab width would be a fixed size. However, having just looked at how NotePad and WordPad display Tabs, I guess anything goes.