E elico Member Oct 30, 2015 #1 Hi all Is it possible to do HEBRE based apps with B4J ? Hebrew writes from right to left . Elico
Erel B4X founder Staff member Licensed User Longtime User Oct 30, 2015 #2 It is possible to use Hebrew characters. It will not be perfect as TextField (for example) doesn't have a right to left option. You can see how it looks in the designer. Upvote 0
It is possible to use Hebrew characters. It will not be perfect as TextField (for example) doesn't have a right to left option. You can see how it looks in the designer.
Daestrum Expert Licensed User Longtime User Nov 1, 2015 #4 You can emulate rtl text. (Java 8) set the style of the textfield to "-fx-alignment: CENTER-RIGHT;" Then on the TextChanged routine use Code: Copy 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
You can emulate rtl text. (Java 8) set the style of the textfield to "-fx-alignment: CENTER-RIGHT;" Then on the TextChanged routine use Code: Copy 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.
derez Expert Licensed User Longtime User Nov 1, 2015 #5 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
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.
E elico Member Nov 1, 2015 #6 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
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
Erel B4X founder Staff member Licensed User Longtime User Nov 1, 2015 #7 Have you tried it? Most controls will just work properly. Upvote 0
E elico Member Nov 1, 2015 #8 Did not try yet . Soon i will and will express my mind ? Elico Upvote 0