RightToLeft Property (AForm)

Returns or sets the text display direction and controls the visual appearance on a bidirectional system.

Syntax

 [ bRightToLeft = ] Object.RightToLeft

The RightToLeft property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

bRightToLeft

Bool

A boolean expression that specifies whether the text, menu, status bar and other controls are drawn from right to left on a bidirectional language system.

Where

bRightToLeft can be one of the following:

 

Value

Description

True

The control is running on a bi-directional platform, such as Arabic Windows95 or Hebrew Windows95, and text is running from right to left. The control should modify its behavior, such as putting vertical scroll bars at the left side of a text or list box, putting labels to the right of text boxes, etc.

False *

The control should act as though it was running on a non-bidirectional platform, such as English Windows95, and text is running from left to right. If the container does not implement this ambient property, this will be the default value.

Comments

From Build 134a, this property becomes read/write property, allowing the user to set during run time.  

When the RightToLeft property is set to True, the following controls will be affected:

The Windows system locale should be set to right to left language such as Hebrew or Arabic to allow controls property pages control caption (or text) to display the right to left language and character set correctly. Setting the system locale can be done from the Windows Control Panel, Regional and Language Options applet by setting the language support for non-Unicode option to a right to left language such as Hebrew or Arabic.

Example

The following statement returns whether the AForm acts as though it were running on a bi-directional platform and text is running from right to left:

bfrm1RightToLeft = frm1.RightToLeft

Applies to

AForm