From: Grzegorz Adam Hankiewicz on
Ian Britten wrote:
> I got most/all of the info I needed from:
> http://www.wxwidgets.org/manuals/stable/wx_internationalization.html#internationalization
> http://www.wxwidgets.org/manuals/stable/wx_nonenglishoverview.html#nonenglishoverview

Which doesn't even mention dialog design or graphical issues.

>> I don't know what is required to have a dialog working
>> R-to-L, how would I mark images or bitmaps with words to avoid being
>> mirrored, and more importantly, how could I simulate this to test the
>> application.
>
> My app/dialog flipped automatically - I didn't do anything (other
> than run in an Arabic Locale). [ Note I'm using wxGTK ]

That's the problem though, I have to display both latin like and arabic
text, and part of the dialog should read right to left and other left to
right. This is also a program if I want to let the user pick up a
language for the ui at the beginning of my program. If wxwidgets does
flip "automatically", I will be able to change the texts, but not the
orientation of the dialogs at runtime.

Say I have access to a computer configured with the arabic version of
windows and everything is right to left. If I pick up English, the
application should change to left-to-right orientation, shouldn't it?

> I haven't had to deal with artwork/icons yet, but I'm hoping that
> http://www.wxwidgets.org/manuals/stable/wx_wxartprovider.html#wxartprovider
> will insulate me from some/most of the problems (Esp. since the GTK
> Stock Icons seem to support RTL variants. See
> http://developer.gnome.org/doc/API/2.0/gtk/gtk-Stock-Items.html)

I was hoping wxwidgets would have a way to precisely specify that a
bitmap has to be flipped or not, and the same for text controls, where
it should be possible to force a setting manually.

--
Rastertech España S.A.
Grzegorz Adam Hankiewicz
/Jefe de Producto TeraVial/

C/ Perfumería 21. Nave I. Polígono industrial La Mina
28770 Colmenar Viejo. Madrid (España)
Tel. +34 918 467 390 (Ext.18) *·* Fax +34 918 457 889
ghankiewicz(a)rastertech.es *·* www.rastertech.es
<http://www.rastertech.es/>


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: Grzegorz Adam Hankiewicz on
Vadim Zeitlin wrote:
> You can use wxWindow::SetLayoutDirection() for this.

Nice. What is the process of submitting documentation patches for future
inclusion?

--
Rastertech España S.A.
Grzegorz Adam Hankiewicz
/Jefe de Producto TeraVial/

C/ Perfumería 21. Nave I. Polígono industrial La Mina
28770 Colmenar Viejo. Madrid (España)
Tel. +34 918 467 390 (Ext.18) *·* Fax +34 918 457 889
ghankiewicz(a)rastertech.es *·* www.rastertech.es
<http://www.rastertech.es/>


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: Grzegorz Adam Hankiewicz on
Vadim Zeitlin wrote:
> You can use wxWindow::SetLayoutDirection() for this.

I've tried just now and this doesn't seem to completely work at runtime.
My first test is calling this in the constructor, and works perfectly.
Calling this at runtime doesn't affect the layout of the already created
widgets: the window bar and individual elements like buttons are drawn
with the new orientation (which I see by the change of button shadows)
but they still stick in their place even though I call Layout.

Does this mean that the only way to re-flip all the widgets is to close
and reopen the dialog, or is this a bug? I'm using 2.8.0.

--
Rastertech España S.A.
Grzegorz Adam Hankiewicz
/Jefe de Producto TeraVial/

C/ Perfumería 21. Nave I. Polígono industrial La Mina
28770 Colmenar Viejo. Madrid (España)
Tel. +34 918 467 390 (Ext.18) *·* Fax +34 918 457 889
ghankiewicz(a)rastertech.es *·* www.rastertech.es
<http://www.rastertech.es/>


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org