Forum > General

TStringGrid with BiDiMode:= bdRightToLeft does not work.

<< < (2/2)

Avishai:
I'm Israeli and living in Tel Aviv, but I'm not a native Hebrew speaker :(  I wish I was.  I didn't claim that all Middle Eastern languages are Right To Left.  I gave examples of Hebrew and Arabic that are Bi-directional.  Also, I'm hoping that you won't be the only one reading my post and some of them might not be aware of Bi-directional languages and the difficulties we have dealing with them in the computer world.  In the mean time, I just noticed that TMenu doesn't seem to respond to BiDiMode, but I haven't looked into it yet.

The "Grid" you are seeing is NOT a TStringGrid.  It's a combination of Nested TPanels, Tedits, and TSplitters.  A horrible workaround.  If you try using a TStringGrid with BiDiMode:= bdRightToLeft, perhaps you will see what I'm talking about.  The Grid mirrors as it should, but editing cells has not worked out well for me.  I get text that is at different heights in the same cell, erratic cell movement, cell contents jumping to other cells...  I tried it on a new application where it was the only component and no code written by me and the behavior was the same.  I hope you are having better luck with it.

ik:
I'm a Linux user, and here is what I have in GTK2 on my Linux machine (KDE 4.6.1).

Can you please provide an image from your Windows so it will be easier for me to see the problem you are having ?

Avishai:
Thank you so much for taking the time to investigate this, but I don't see how a screen shot can show cell movement, disappearing cursor or text moving from Cell[2,4] to Cell[3,2] after exiting Cell[2,4].

I mentioned the Tmenu not responding to BiDiMode but that I hadn't looked it to it yet.  When I changed the first menu item to Hebrew, it mirrored just fine.

Zaher:
Grid not competed yet, i must look at it to complete it.
In Delphi it depend on flip/mirror the canvas, it is not found in Lazarus not good supported by the all platforms.
i made it by flip the drawing lines and cells, and need more work on it.

Navigation

[0] Message Index

[*] Previous page

Go to full version