Changeset 107 for trunk/Core.pas


Ignore:
Timestamp:
Jul 19, 2024, 11:24:06 PM (4 months ago)
Author:
chronos
Message:
  • Fixed: Full screen mode switching on Windows.
  • Modified: Updated Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Core.pas

    r74 r107  
    44
    55uses
    6   Classes, SysUtils, Theme, ApplicationInfo, Translator;
     6  Classes, SysUtils, Theme, ApplicationInfo, Translator, FormEx, PersistentForm;
    77
    88type
     
    1212  TCore = class(TDataModule)
    1313    ApplicationInfo: TApplicationInfo;
     14    PersistentForm1: TPersistentForm;
    1415    Translator1: TTranslator;
    1516    ThemeManager1: TThemeManager;
     17    procedure DataModuleCreate(Sender: TObject);
    1618  end;
    1719
     
    2426{$R *.lfm}
    2527
     28{ TCore }
     29
     30procedure TCore.DataModuleCreate(Sender: TObject);
     31begin
     32  PersistentForm1.RegistryContext := ApplicationInfo.GetRegistryContext;
     33
     34  TFormEx.Translator := Translator1;
     35  TFormEx.ThemeManager := ThemeManager1;
     36  TFormEx.PersistentForm := PersistentForm1;
     37end;
     38
    2639end.
    2740
Note: See TracChangeset for help on using the changeset viewer.