Page 1 of 1

Why TAB character consists with two characters?

Posted: Thu Aug 07, 2008 11:07 pm
by Marsianin
Why to delete ONE tab I need to press Backspace twice?

Posted: Fri Aug 08, 2008 6:40 am
by Sergey Tkachenko
May be because 2 tab characters there?
Please send me example how to reproduce.

Posted: Fri Aug 08, 2008 8:47 am
by Marsianin
Pressing TAB once in TRichViewEdit produce tabulation and moves cursor as it must do, but to delete it I need to press backspace twice.

But I'm going to play with it... May be there is something on my side and Unicode...

Posted: Fri Aug 08, 2008 8:52 am
by Marsianin
I'm using

Code: Select all

RichViewEdit1.InsertTextW(WideChar($0009));
or
RichViewEdit1.InsertText(#9);
and the same thing. It produces tab but to delete it I need do press backspace twice. After first backspace cursor moves one space !right! and after the second it deletes that space and tab and moves x positions left.

Posted: Fri Aug 08, 2008 3:44 pm
by Sergey Tkachenko
I confirm the bug.
These methods add tabulator + empty text item.
It will be fixed in the next update.
While you can use InsertTab method.