Ignore:
Timestamp:
Jul 20, 2018, 9:48:47 AM (6 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormTargetOptions.pas

    r72 r92  
    2525    procedure ButtonCompilerClick(Sender: TObject);
    2626    procedure ButtonExecuteClick(Sender: TObject);
     27    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
     28    procedure FormCreate(Sender: TObject);
     29    procedure FormShow(Sender: TObject);
    2730  private
    2831    { private declarations }
     
    3538  FormTargetOptions: TFormTargetOptions;
    3639
     40
    3741implementation
    3842
    3943{$R *.lfm}
     44
     45uses
     46  UCore;
    4047
    4148{ TFormTargetOptions }
     
    5158  OpenDialog1.FileName := Edit2.Text;
    5259  if OpenDialog1.Execute then Edit2.Text := OpenDialog1.FileName;
     60end;
     61
     62procedure TFormTargetOptions.FormClose(Sender: TObject;
     63  var CloseAction: TCloseAction);
     64begin
     65  Core.PersistentForm1.Save(Self);
     66end;
     67
     68procedure TFormTargetOptions.FormCreate(Sender: TObject);
     69begin
     70  Core.CoolTranslator1.TranslateComponentRecursive(Self);
     71end;
     72
     73procedure TFormTargetOptions.FormShow(Sender: TObject);
     74begin
     75  Core.PersistentForm1.Load(Self);
    5376end;
    5477
Note: See TracChangeset for help on using the changeset viewer.