|
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
Demo project Demos\Delphi\Assorted\International\RTL\ Demos\CBuilder\Assorted\International\RTL\ |