On Thu, Apr 3, 2014 at 2:45 PM, David Woods <[email protected]> wrote:

> Okay, I may be the only person in the world with this problem.  That
> seems to be a recent theme since I took on this latest project.
>

Well, it does seem clear that not a lot of folks are using wx with
right-to-left languages  but hopefully you are not the ONLY one!

I'm trying to add Arabic support to my software (and hopefully
> eventually Hebrew and other Right-to-Left languages.)  I have a module
> for coding still images written using FloatCanvas. (FloatCanvas has been
> fantastic for what I needed, by the way. Thank you for sharing it.)
>

you're welcome -- nice to get positive feedback!



> 1.  My graphic file shows up BACKWARDS.  Yup.  It's a mirror image of
> what it's supposed to be.  My graphic file has been reversed, as if it
> were text.
>

I jsut found this blog entry:

http://wxwidgets.blogspot.com/2006/10/right-to-left-layout-rtl-support-in.html

in which is says:

"""
In short, all coordinates for drawing and for window positioning are
mirrored horizontally which means that (apart from bitmap mirroring) little
has to be done at the user level.
"""
so the bitmap mirroring is intentional (or at least known).


> 2.  (And this is the fun part!)  When I try to MOVE my image, using the
> "hand" tool I got from the Float Canvas Demo application, my image
> flickers as I move it, jumping between mirrored and correctly
> displayed!


This sounds like a bug in wx to me.

  I'll try declaring the control as Left-to-Right regardless of
> the localization setting.


you'd think that would work -- as long as you dont want to show text on the
canvas...

-Chris


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to