Sign in Join
FPDoc Onlineexperiment

TControl.BiDiMode property

Member of TControlpublicIn unit Controls

Indicates whether text controls use in bi-directional reading.

Declaration

pascal
property BiDiMode: TBiDiMode read FBiDiMode write SetBiDiMode stored IsBiDiModeStored default bdLeftToRight;

Description

In "normal" reading mode (left-to-right, LTR) text entry starts at the left, text is almost left justified, and vertical scrollbars sit at the right side of the control.

In right-to-left mode text entry starts at the right, text is almost right justified, and vertical scrollbars sit at the left side of the control.

In a bidirectional environment these different placements and adjustments can be configured (swapped) in various (but not all) ways.

(Allows RTL languages such as Arabic and Hebrew to be used)

Wild guess: The default mode is established by the platform, RTL reading is not supported on all (Windows) platforms.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.