UserGuide

Right-to-Left Text Support

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Xojo primarily uses native controls when building your apps. Because of this, with a few noted exceptions, right-to-left text support is supported for desktop, mobile and web without you having to do anything special.

The exceptions for desktop apps are DesktopBevelButton and DesktopListBox. For DesktopListBox you would use the CellBackgroundPaint event handler to draw your text appropriately. The exception for web apps is WebListBox. Use WebListBoxStyleRenderer when you need right-to-left text support for a WebListBox.

Right-to-left layout changes are not automatically supported by Xojo. However, you can use the Container to contain sections of your layouts and put code in the Container to manually adjust the layout as necessary.

To learn how you can adjust a Container layout dynamically at run time, refer to this example project or the Container section of the User Guide:

See Also

DesktopContainer, WebContainer, MobileContainer classes