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

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormCompileMultiple.pas

    r147 r149  
    55uses
    66  Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ComCtrls,
    7   Target;
     7  Target, FormEx;
    88
    99type
     
    1111  { TFormCompileMultiple }
    1212
    13   TFormCompileMultiple = class(TForm)
     13  TFormCompileMultiple = class(TFormEx)
    1414    ButtonCompile: TButton;
    1515    ButtonCancel: TButton;
    1616    ListViewTargets: TListView;
    1717    procedure ButtonCompileClick(Sender: TObject);
    18     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    19     procedure FormCreate(Sender: TObject);
    20     procedure FormDestroy(Sender: TObject);
    2118    procedure FormShow(Sender: TObject);
    2219  private
     
    3229{$R *.lfm}
    3330
    34 uses
    35   Core;
    36 
    37 procedure TFormCompileMultiple.FormCreate(Sender: TObject);
    38 begin
    39   Core.Core.Translator.TranslateComponentRecursive(Self);
    40   Core.Core.ThemeManager.UseTheme(Self);
    41 end;
    42 
    43 procedure TFormCompileMultiple.FormClose(Sender: TObject;
    44   var CloseAction: TCloseAction);
    45 begin
    46   Core.Core.PersistentForm1.Save(Self);
    47 end;
    48 
    4931procedure TFormCompileMultiple.ButtonCompileClick(Sender: TObject);
    5032var
     
    5638end;
    5739
    58 procedure TFormCompileMultiple.FormDestroy(Sender: TObject);
    59 begin
    60 end;
    61 
    6240procedure TFormCompileMultiple.FormShow(Sender: TObject);
    6341begin
    64   Core.Core.PersistentForm1.Load(Self);
    6542  ReloadList;
    6643end;
Note: See TracChangeset for help on using the changeset viewer.