mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 12:19:21 +02:00
lcl, win32: update format settings if UpdateFormatSettings = True (feature #0020517)
git-svn-id: trunk@35168 -
This commit is contained in:
parent
09018556e6
commit
9550f573ca
@ -1301,6 +1301,7 @@ type
|
|||||||
FBidiMode: TBiDiMode;
|
FBidiMode: TBiDiMode;
|
||||||
FRestoreStayOnTop: TList;
|
FRestoreStayOnTop: TList;
|
||||||
FTaskBarBehavior: TTaskBarBehavior;
|
FTaskBarBehavior: TTaskBarBehavior;
|
||||||
|
FUpdateFormatSettings: Boolean;
|
||||||
procedure DoOnIdleEnd;
|
procedure DoOnIdleEnd;
|
||||||
function GetActive: boolean;
|
function GetActive: boolean;
|
||||||
function GetCurrentHelpFile: string;
|
function GetCurrentHelpFile: string;
|
||||||
@ -1455,6 +1456,7 @@ type
|
|||||||
procedure IntfAppMinimize;
|
procedure IntfAppMinimize;
|
||||||
procedure IntfAppRestore;
|
procedure IntfAppRestore;
|
||||||
procedure IntfDropFiles(const FileNames: Array of String);
|
procedure IntfDropFiles(const FileNames: Array of String);
|
||||||
|
procedure IntfSettingsChange;
|
||||||
procedure IntfThemeOptionChange(AThemeServices: TThemeServices; AOption: TThemeOption);
|
procedure IntfThemeOptionChange(AThemeServices: TThemeServices; AOption: TThemeOption);
|
||||||
|
|
||||||
function IsRTLLang(ALang: String): Boolean;
|
function IsRTLLang(ALang: String): Boolean;
|
||||||
@ -1492,6 +1494,7 @@ type
|
|||||||
property MoveFormFocusToChildren: Boolean read FMoveFormFocusToChildren write FMoveFormFocusToChildren default True;
|
property MoveFormFocusToChildren: Boolean read FMoveFormFocusToChildren write FMoveFormFocusToChildren default True;
|
||||||
property MouseControl: TControl read FMouseControl;
|
property MouseControl: TControl read FMouseControl;
|
||||||
property TaskBarBehavior: TTaskBarBehavior read FTaskBarBehavior write SetTaskBarBehavior;
|
property TaskBarBehavior: TTaskBarBehavior read FTaskBarBehavior write SetTaskBarBehavior;
|
||||||
|
property UpdateFormatSettings: Boolean read FUpdateFormatSettings write FUpdateFormatSettings; platform;
|
||||||
property OnActionExecute: TActionEvent read FOnActionExecute write FOnActionExecute;
|
property OnActionExecute: TActionEvent read FOnActionExecute write FOnActionExecute;
|
||||||
property OnActionUpdate: TActionEvent read FOnActionUpdate write FOnActionUpdate;
|
property OnActionUpdate: TActionEvent read FOnActionUpdate write FOnActionUpdate;
|
||||||
property OnActivate: TNotifyEvent read FOnActivate write FOnActivate;
|
property OnActivate: TNotifyEvent read FOnActivate write FOnActivate;
|
||||||
|
@ -117,6 +117,7 @@ begin
|
|||||||
FIcon.OnChange := @IconChanged;
|
FIcon.OnChange := @IconChanged;
|
||||||
FNavigation := [anoTabToSelectNext,anoReturnForDefaultControl,
|
FNavigation := [anoTabToSelectNext,anoReturnForDefaultControl,
|
||||||
anoEscapeForCancelControl,anoF1ForHelp,anoArrowToSelectNextInParent];
|
anoEscapeForCancelControl,anoF1ForHelp,anoArrowToSelectNextInParent];
|
||||||
|
FUpdateFormatSettings := True;
|
||||||
ApplicationActionComponent:=Self;
|
ApplicationActionComponent:=Self;
|
||||||
OnMenuPopupHandler:=@MenuPopupHandler;
|
OnMenuPopupHandler:=@MenuPopupHandler;
|
||||||
System.InitCriticalSection(FAsyncCall.CritSec);
|
System.InitCriticalSection(FAsyncCall.CritSec);
|
||||||
@ -1987,6 +1988,12 @@ begin
|
|||||||
TDropFilesEvent(FApplicationHandlers[ahtDropFiles][i])(Self,Filenames);
|
TDropFilesEvent(FApplicationHandlers[ahtDropFiles][i])(Self,Filenames);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TApplication.IntfSettingsChange;
|
||||||
|
begin
|
||||||
|
if FUpdateFormatSettings then
|
||||||
|
GetFormatSettings;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TApplication.IntfThemeOptionChange(AThemeServices: TThemeServices;
|
procedure TApplication.IntfThemeOptionChange(AThemeServices: TThemeServices;
|
||||||
AOption: TThemeOption);
|
AOption: TThemeOption);
|
||||||
begin
|
begin
|
||||||
|
@ -2165,6 +2165,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
WM_SETTINGCHANGE:
|
||||||
|
Application.IntfSettingsChange;
|
||||||
WM_THEMECHANGED:
|
WM_THEMECHANGED:
|
||||||
begin
|
begin
|
||||||
// winxp theme changed, recheck whether themes are enabled
|
// winxp theme changed, recheck whether themes are enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user