Hi, i started to make a arabic Win32 project, and need to add some patches to Lazarus source for support "Bidi Mode"/"Right to left"
I know it not easy to trust my code, i am still new with you, but i will try make small peaces of the patches to make you under stand it.
Now, what the strategy of lazarus
- Make it full compatible with Delphi
- Nop, just make it more flexible and logical
To understand me
1 - From Delphi 4, Delphi make a property in TControl
TBiDiMode = (bdLeftToRight, bdRightToLeft, bdRightToLeftNoAlign, bdRightToLeftReadingOnly);
But after more than 10 years with many projects i am used only (bdLeftToRight, bdRightToLeft) and i use Alignment property instead of other values of BidiMode
2 - If we look at VC or VB from Microsoft we will find
RightToLeft:Boolean
3 - in HTML/CSS thay are useing Direction = ["rtl"|"ltr"|""]
When i asked my friends/co workers thay all prefer as HTML/CSS way, that add property to TControl named "Direction" and it declare as
TDirection = (dirDefault, dirLeftToRight, dirRightToLeft);
dirDefault: to remove ParentBidiMode/ParentDirection property and it is mean in HTML/CSS (inherite the value from the parent).
---------
I will choose the Third way to add Right To Left support, but before i start, i need to your acceptation.
Thanks