HeaderPane
Main
Hide
Share Link
Print

Right-To-Left Reading Support

The date field control (SftDate) and the month calendar control (SftCalendar) support a right-to-left layout, for languages such as Arabic, Hebrew and Persian. The RightToLeft property (RightToLeft for a month calendar control) turns it on and off at any time. In Windows Forms, the wrapper classes name the property CtlRightToLeft, because Control.RightToLeft exists already. The control lays itself out from right to left and does not use the mirroring of Windows, so its text is never shown mirrored.

In a field with the right-to-left layout, the check box is on the right, the Clear button, the up and down buttons and the dropdown button are on the left, and the value uses the right-to-left reading order. The Left and Right keys move to the next and the previous part of the value. The dropdown is aligned with the field's right edge (alignSftDateNear) or its left edge (alignSftDateFar, see DropDownAlignment).

A calendar with the right-to-left layout shows its months, the days of the week and the days from right to left. The previous button is on the right and the next button on the left, the week numbers are on the right side, and the pictures of special dates are shown in the upper left corner of a day. The Left and Right keys move to the next and the previous day. The dropdown calendar of a field follows the field's layout.

The culture does not change the layout (see Cultures and Calendar Systems). An application that follows the reading direction of the culture asks .NET for it, as the C# DemoSample does:

string locale = "ar-SA";
sftDate1.Culture = locale;
sftDate1.CtlRightToLeft = new System.Globalization.CultureInfo(locale).TextInfo.IsRightToLeft;

Right-to-left reading support is transparent to the application. All properties, methods and events are supported, and the coordinates of the HitTest method and of the mouse events are pixels relative to the control as usual.


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.