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/FormTargetOptions.pas

    r145 r149  
    55uses
    66  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    7   Target;
     7  Target, FormEx;
    88
    99type
     
    1111  { TFormTargetOptions }
    1212
    13   TFormTargetOptions = class(TForm)
     13  TFormTargetOptions = class(TFormEx)
    1414    ButtonOk: TButton;
    1515    ButtonCancel: TButton;
     
    2323    procedure ButtonCompilerClick(Sender: TObject);
    2424    procedure ButtonExecuteClick(Sender: TObject);
    25     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    26     procedure FormCreate(Sender: TObject);
    27     procedure FormShow(Sender: TObject);
    2825  public
    2926    procedure LoadControls(Target: TTarget);
     
    3532
    3633{$R *.lfm}
    37 
    38 uses
    39   Core;
    4034
    4135{ TFormTargetOptions }
     
    5145  OpenDialog1.FileName := Edit2.Text;
    5246  if OpenDialog1.Execute then Edit2.Text := OpenDialog1.FileName;
    53 end;
    54 
    55 procedure TFormTargetOptions.FormClose(Sender: TObject;
    56   var CloseAction: TCloseAction);
    57 begin
    58   Core.Core.PersistentForm1.Save(Self);
    59 end;
    60 
    61 procedure TFormTargetOptions.FormCreate(Sender: TObject);
    62 begin
    63   Core.Core.Translator.TranslateComponentRecursive(Self);
    64   Core.Core.ThemeManager.UseTheme(Self);
    65 end;
    66 
    67 procedure TFormTargetOptions.FormShow(Sender: TObject);
    68 begin
    69   Core.Core.PersistentForm1.Load(Self);
    7047end;
    7148
Note: See TracChangeset for help on using the changeset viewer.