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

Mayost Sharon sharon at 455.co.il
Thu Feb 17 13:46:39 CET 2022


Hello

System.Language = "he_IL.UTF-8"

Turns the whole project from right to left

If there are 2 controls of a combo box
I want one control to be right to left
And a second control will be left to right

Thanks 

---------- Original Message -----------
From: Gianluigi <bagonergi at gmail.com>
To: Gambas Mailing List <user at lists.gambas-basic.org>
Sent: Thu, 17 Feb 2022 10:41:43 +0100
Subject: Re: [Gambas-user] Right-to-left support in GTK OR QT

> 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
------- End of Original Message -------



More information about the User mailing list