B4J Library Hebrew TextField class

I learned here http://www.b4x.com/android/forum/threads/hebrew-direction.34882/ that Right to Left languages are not supported yet by jave, and made this class to solve the problem of wrong-direction in Hebrew text display.
I created the important methods, others can be added.
example attached.
Edit: I improved the class to ver 2 by changing the reversing sub to handle single words in a sentence, so the combination of English and Hebrew words in a sentence goes well. I leave the first version also.
Reverse sub can be used for labels and other text-showing places.
 

Attachments

  • htext_example.zip
    2.4 KB · Views: 545
  • htext2_example.zip
    2.5 KB · Views: 562
Last edited:

Theera

Well-Known Member
Licensed User
Longtime User
Hi Derez,
Do you some example to make clearly? I need try to test.
 

derez

Expert
Licensed User
Longtime User
I replaced the file in the first post with an example.
You'll have to change the limits of the ascii codes to fit Thay.
 
Last edited:
Top