rvico TRichView Reference | Overview

Bidirectional text in RichView

Top  Previous  Next

Bidirectional mode determines the reading order of the text, order of items in lines, and placement of vertical scrollbar.

The support for bidirectional text (Arabic or Hebrew) is turned off by default. In order to turn it on, set BiDiMode property of TRichView either to rvbdLeftToRight or to rvbdRightToLeft.

BiDiMode of document can be overridden by BiDiMode of paragraph, BiDiMode of paragraph can be overridden by BiDiMode of text item.

Mixed right-to-left and left-to-right text is supported. (even inside the same text item).

Attaching of adjacent characters (common for Arabic languages) is supported too.

Bullets and numbering of paragraphs take BiDiMode into account: for right-to-left paragraphs, list markers are positioned to the right.

Tab stops support BiDiMode too: they are inverted (including tab alignments) for right-to-left paragraphs.

Limitations

BiDiMode works in Windows versions supporting right-to-left languages (for example, on Win2000 and WinXP with RTL support installed, see Control Panel, Regional and Language Options, tab Languages, Install files for complex scripts and right-to-left languages). In all other versions of Windows, right-to-left text will be displayed left-to-right.

BiDiMode mode for Unicode text works only under WinNT/2000.

Justify alignment does not work if BiDiMode support is enabled.

Editing text in BiDiMode works properly only if all characters in text have glyphs in the their font.

Demo project

Demos\Delphi\Assorted\International\RTL\

Demos\CBuilder\Assorted\International\RTL\


RichView © Sergey Tkachenko