FlowDirection Property

The FlowDirection property affects text order, text and control alignment, control title bar layout, and control position mirroring in WPF applications. It replaces the deprecated PowerScript RightToLeft property.

Applies to

Application object and all visual controls

Usage

The FlowDirection property takes one of these enumerated values:
  • LeftToRight! (default) – characters display in left-to-right order.
  • RightToLeft! – characters display in right-to-left order, control position is automatically mirrored, control title bar button positions are mirrored, and text and controls are right-aligned.

The flow direction on a container control is automatically inherited by other controls in the container. However, you can override the flow direction of the container by including a different flow direction value for the controls you place inside the container.

To use Arabic or Hebrew text for messages, set the FlowDirection property of the Application object to RightToLeft!. This causes the characters in messages to read from right to left. However, text continues to show in English unless you are running a localized version of PowerBuilder.

You can set the FlowDirection property:
  • In a painter – in the Properties view, select one of the enumerated values in the drop-down list for the FlowDirection property.
  • In scripts – set the FlowDirection value to LeftToRight! (default) or RightToLeft!.