TRichViewEdit - Tab Characters

General TRichView support forum. Please post your questions here
Post Reply
Graham
Posts: 64
Joined: Sun Jan 27, 2013 7:51 pm
Location: Berkshire U.K.

TRichViewEdit - Tab Characters

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

Post by Sergey Tkachenko »

How can I reproduce it?
Graham
Posts: 64
Joined: Sun Jan 27, 2013 7:51 pm
Location: Berkshire U.K.

Post by Graham »

I will e-mail you a link to a video you can download to show the problem.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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).
Graham
Posts: 64
Joined: Sun Jan 27, 2013 7:51 pm
Location: Berkshire U.K.

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