Recent

Author Topic: TStringGrid and BiDiMode?  (Read 6152 times)

Avishai

  • Hero Member
  • *****
  • Posts: 1021
TStringGrid and BiDiMode?
« on: February 18, 2011, 06:55:55 pm »
It appears that TStringGrid does not have a BiDiMode.  Is there a way to flip it around so that is is RightToLeft?
Lazarus Trunk / fpc 2.6.2 / Win32

ik

  • Jr. Member
  • **
  • Posts: 88
  • ik
    • LINESIP
Re: TStringGrid and BiDiMode?
« Reply #1 on: February 18, 2011, 10:25:26 pm »
I do not know about the Windows part (Zaher can answer that I think), but at the moment with the GTK version I have not yet created a solution for it, although I do plan to add such support before version 1. All I need is some time for it.

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: TStringGrid and BiDiMode?
« Reply #2 on: February 18, 2011, 11:37:43 pm »
Thanks for your response.  I just started looking at FPC for the first time today, so I'm sure my questions are very basic.  I am an Israeli/American living in Israel so I deal a lot with both English and Hebrew.  I try to help new immigrants with learning Hebrew, but most of them set their systems to their native language.  I have to set the app. to Hebrew in order for the software to work properly.  Delphi's (D6) TStringGrid is RightToLeft enabled but it's buggy in that mode as are most things that have RightToLeft in Delphi.  I'm hoping to find solutions.  Thanks for your help.  If we lived in a perfect world, we wouldn't have anything to do, which would make it not a perfect world.  Catch 22.
Lazarus Trunk / fpc 2.6.2 / Win32

ik

  • Jr. Member
  • **
  • Posts: 88
  • ik
    • LINESIP
Re: TStringGrid and BiDiMode?
« Reply #3 on: February 18, 2011, 11:49:02 pm »
First of all ברוך הבא (welcome).

Secondly, FPC != Lazarus. FPC is the compiler with RTL and few other packages and libraries.
Lazarus is an IDE written in Object Pascal using the FPC dialect for the FPC, while mimicking Delphi.

As you know, Bi-Directional is a pain in computers, and it's not a trivial thing to do, because each widget and platform react differently then the others.
So it require a lot of work and investigation in order to solve this issue, and the solution might be to draw things ourself rather then use the normal widget support.


jesusr

  • Sr. Member
  • ****
  • Posts: 499
Re: TStringGrid and BiDiMode?
« Reply #4 on: February 22, 2011, 08:48:15 pm »
what lazarus version do you use? (help->about lazarus->right click-> copy version information to clipboard), here Lazarus 0.9.31 r29575M FPC 2.5.1 x86_64-linux-gtk 2, stringgrid has bidimode property

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: TStringGrid and BiDiMode?
« Reply #5 on: February 23, 2011, 09:40:03 am »
I'm using the following:

Version #:0.9.28.2 beta
Date: 2009-10-25
FPC Version: 2.2.4
SVN Revision: 22279
i386-win32-win32/win64

On the Lazarus Download page, this seems to be the latest for Windows.
Lazarus Trunk / fpc 2.6.2 / Win32

Lush

  • New Member
  • *
  • Posts: 15
Re: TStringGrid and BiDiMode?
« Reply #6 on: February 23, 2011, 10:18:51 am »
On the Lazarus Download page, this seems to be the latest for Windows.
Look at "Daily Snapshots" on this page, in the left menu ;)

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: TStringGrid and BiDiMode?
« Reply #7 on: February 23, 2011, 10:44:25 am »
On the Lazarus Download page, this seems to be the latest for Windows.
Look at "Daily Snapshots" on this page, in the left menu ;)

Thanks Lush, but the latest version doesn't seem to support Windows 64bit.
Lazarus Trunk / fpc 2.6.2 / Win32

 

TinyPortal © 2005-2018