[Lazarus] Looking for help: Trying to add better RightToLeft support to Lazarus.

Avishai avishai.gore at gmail.com
Thu Dec 20 15:01:38 CET 2012


Sorry, I don't have Linux.  I'm hoping to get input from others for
other OS's and maybe write some wrappers so that Lazarus calls will
work multi-platform.  I am also hoping to find fixes for all platforms
that support RightToLeft.  If you have anything, maybe we can share.

On Thu, Dec 20, 2012 at 2:20 PM, Junior <lazarus.linux at gmail.com> wrote:
>
> Windows only? and for Linux?
>
> :(
>
> Em 20-12-2012 06:30, Avishai escreveu:
>
> Looking for help:  Trying to add better RightToLeft support to Lazarus.
>
> I only work with Windows so any help with other OS's would be very good.
>
> For Windows ONLY:
>
> Ideally, RightToLeft should happen at Design-Time so that there is no
> difference working RightToLeft or LeftToRight.  So far I have not been
> able to make that work so I am forced to Design 'LeftToRight' and see
> it RightToLeft only at Run-Time.
>
> Since Windows Vista, BiDiMode is obsolete and should not be used.
> Windows Vista introduced RightToLeftLayout and NoInheritLayout that
> control the Origin and Direction of TWinControl.Canvas effectively
> mirroring the Control and controlling Text Direction.
>
> One problem seems to be with Themes.  If Themes are active mirroring
> controls does not work properly and can not be used.  Solution 1. Go
> to 'Project/Project Options' and uncheck 'Use manifest...'.  Solution
> 2.  This is a hack and should not be used unless you ONLY do
> RightToLeft.  In Themes.pas you can disable Themes in Procedure
> TThemeServices.UpdateThemes;
>
> Most TWinControl descendants work well but not all of them.  Examples
> of things that don't work well:  TMenuItem images, TSpeedButton
> images, TBitBtn text.
>
> I am attaching a Zip File with modifications that I have made to core
> Lazarus source files.  It also has a small demonstration project.  If
> you want to try this, I highly recommend that you use a second
> installation of Lazarus.
>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Shalom,
Avishai
avishai.gore at gmail.com
אבישי גוֹר




More information about the Lazarus mailing list