B4J Question hebrew apps

Daestrum

Expert
Licensed User
Longtime User
You can emulate rtl text.
(Java 8)
set the style of the textfield to "-fx-alignment: CENTER-RIGHT;"
Then on the TextChanged routine use
B4X:
Sub tf_TextChanged(old As String,new As String)
   Dim yy As String = ""
   For sa = new.Length -1 To 0 Step -1
      yy = new.CharAt(sa) & yy
   Next
   tf.Text = yy
End Sub

The typed characters come out reversed, ie typing 'abcdefg' would show in the textfield as 'gfedcba" and the cursor moves right to left.
 
Upvote 0

derez

Expert
Licensed User
Longtime User
I had to change the order in my Hebrew apps but when I upgraded jave to ver 8 I found that I don't need to do it anymore.
In the javafx designer when you write text in Hebrew it writes it wrong but this shows ok in the actual form.
 
Upvote 0

elico

Member
Isnt it the time to add what is needed so hebrew apps will b done easyly , like it is done a visual studio exoress for example or
as it is done with DELPHI at design time ?

Elico
 
Upvote 0
Top