Ignore:
Timestamp:
Jun 5, 2024, 9:58:43 AM (4 months ago)
Author:
chronos
Message:
  • Modified: Use TFormEx class from Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormMain.pas

    r148 r149  
    66  Classes, SysUtils, FileUtil, Forms, Controls, FormCPU, FormInput,
    77  Graphics, Dialogs, Menus, ActnList, ComCtrls, ExtCtrls, Target, Registry,
    8   LazFileUtils, FormOptions, FormMessages, FormTargets,
    9   FormOutput, FormMemory, FormSourceCode, FormTargetCode, FormLog,
    10   FormCompileMultiple;
     8  LazFileUtils, FormOptions, FormMessages, FormTargets, FormCompileMultiple,
     9  FormOutput, FormMemory, FormSourceCode, FormTargetCode, FormLog, FormEx;
    1110
    1211type
     
    1413  { TFormMain }
    1514
    16   TFormMain = class(TForm)
     15  TFormMain = class(TFormEx)
    1716    AProgramCompileMultiple: TAction;
    1817    AViewLog: TAction;
     
    212211    UpdateTargetList;
    213212    DockInit;
    214     Core.Core.PersistentForm1.Load(Self, True);
    215     Core.Core.ThemeManager.UseTheme(Self);
    216213    FormSourceCode.UpdateTheme;
    217214  end;
     
    374371procedure TFormMain.FormCreate(Sender: TObject);
    375372begin
    376   Core.Core.Translator.TranslateComponentRecursive(Self);
    377   Core.Core.ThemeManager.UseTheme(Self);
    378 
    379373  FormSourceCode := TFormSourceCode.Create(nil);
    380374  FormCPU := TFormCPU.Create(nil);
     
    461455procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    462456begin
    463   Core.Core.PersistentForm1.Save(Self);
    464457  Application.Terminate;
    465458end;
Note: See TracChangeset for help on using the changeset viewer.