Why TAB character consists with two characters?

General TRichView support forum. Please post your questions here
Post Reply
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Why TAB character consists with two characters?

Post by Marsianin »

Why to delete ONE tab I need to press Backspace twice?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

May be because 2 tab characters there?
Please send me example how to reproduce.
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post 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...
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

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

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