You can set justify propery for this: like this--
var w = new Window ("dialog", "", undefined, undefined);
var editText = w.add("edittext");
editText.preferredSize.width = 100;
editText.justify = "right"
This is the solution for you:
editText.justify = "right";
hm. justify = "right" does not mean text is running from Right-to-Left with e.g. Hebrew text.
Don't know if that's possible at all.
As you can see from the second screen where "Right to left Reading order" is checked the text is still showing as:
"Text type Right to left" and not: "tfel ot thgiR epyt txeT".
Justifying doesn't give you "tfel ot thgiR epyt txeT";
I will give you "Text type Right to left" only.
Justifying won't give to the scroll bar to the left problem.
That is the case.
I am also searching for the same.
How can I make the writing language Arabic automatically ..
I know that this is the language of the computer and the device ..
But is there a code that enables me to make the writing Arabic when writing inside the edittext ??