mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 20:19:10 +02:00
LCL: Fix Initial value for Application.BidiMode. Issue #22044, (modified) patch Denis Kozlov
git-svn-id: trunk@49346 -
This commit is contained in:
parent
913b752bcc
commit
8bbae227d3
@ -1560,6 +1560,8 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
const
|
const
|
||||||
|
DefaultApplicationBiDiMode: TBiDiMode = bdLeftToRight;
|
||||||
|
|
||||||
DefHintColor = clInfoBk; // default hint window color
|
DefHintColor = clInfoBk; // default hint window color
|
||||||
DefHintPause = 500; // default pause before hint window displays (ms)
|
DefHintPause = 500; // default pause before hint window displays (ms)
|
||||||
DefHintShortPause = 0; // default reshow pause
|
DefHintShortPause = 0; // default reshow pause
|
||||||
|
@ -82,8 +82,6 @@ end;
|
|||||||
TApplication Constructor
|
TApplication Constructor
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
constructor TApplication.Create(AOwner: TComponent);
|
constructor TApplication.Create(AOwner: TComponent);
|
||||||
var
|
|
||||||
LangDefault, LangFallback: String;
|
|
||||||
begin
|
begin
|
||||||
LCLProc.SendApplicationMessageFunction:=@SendApplicationMsg;
|
LCLProc.SendApplicationMessageFunction:=@SendApplicationMsg;
|
||||||
|
|
||||||
@ -116,15 +114,7 @@ begin
|
|||||||
FFindGlobalComponentEnabled:=true;
|
FFindGlobalComponentEnabled:=true;
|
||||||
RegisterFindGlobalComponentProc(@FindApplicationComponent);
|
RegisterFindGlobalComponentProc(@FindApplicationComponent);
|
||||||
|
|
||||||
{$ifndef wince}// remove ifdef when gettext is fixed
|
FBidiMode := DefaultApplicationBiDiMode;
|
||||||
LazGetLanguageIDs(LangDefault, LangFallback);
|
|
||||||
if LangDefault <> '' then
|
|
||||||
FBidiMode := Direction(LangDefault)
|
|
||||||
else
|
|
||||||
FBidiMode := Direction(LangFallback);
|
|
||||||
{$else}
|
|
||||||
FBidiMode := bdLeftToRight;
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
FMainFormOnTaskBar := False;
|
FMainFormOnTaskBar := False;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user