[Gambas-user] Right-to-left support in GTK OR QT

Gianluigi bagonergi at gmail.com
Thu Feb 17 10:41:43 CET 2022


Il giorno mar 15 feb 2022 alle ore 07:23 Mayost Sharon <sharon at 455.co.il>
ha scritto:

>
> Hello
>
> Attached is a picture
> For example you will see the ListBox
> 1. Evaluate ListBox1.Direction = RightToLeft
> 2. I wrote text content in Hebrew
> ...
>

 Here it works correctly, you can try these steps:
1 - Create a new translatable graphic project.
2 - in Sources add a Module (MMain) and make it a startup class
3 - Write this code in it
Public Sub Main()

  System.Language = "he_IL.UTF-8".
  FMain.Show

End

4 - In FMain.form draw the ComboBox1
5 - In FMain.class write this code
Public Sub Form_Open()

  ComboBox1.Add(("First Item"))
  ComboBox1.Add(("Second Item"))
  ComboBox1.Add(("Third Item"))
  ComboBox1.Add(("Fourth Item"))
  ComboBox1.Add(("Fifth Item"))

End
 Click on Translate and translate as per the attached image

 Good Luck

Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220217/4e6acfe3/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hebrew-test.jpg
Type: image/jpeg
Size: 48337 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220217/4e6acfe3/attachment-0001.jpg>


More information about the User mailing list