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

    r145 r149  
    55uses
    66  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    7   Spin, ComCtrls, ExtCtrls, Target, Theme;
     7  Spin, ComCtrls, ExtCtrls, Target, Theme, FormEx;
    88
    99type
     
    1111  { TFormOptions }
    1212
    13   TFormOptions = class(TForm)
     13  TFormOptions = class(TFormEx)
    1414    ButtonOk: TButton;
    1515    ButtonCancel: TButton;
     
    4444    procedure CheckBoxOptimizeCopyMultiplyChange(Sender: TObject);
    4545    procedure CheckBoxOptimizeRelativeIndexesChange(Sender: TObject);
    46     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    4746    procedure FormCreate(Sender: TObject);
    48     procedure FormShow(Sender: TObject);
    4947  public
    5048    procedure UpdateInterface;
     
    6260
    6361{ TFormOptions }
    64 
    65 procedure TFormOptions.FormShow(Sender: TObject);
    66 begin
    67   Core.Core.PersistentForm1.Load(Self);
    68 end;
    6962
    7063procedure TFormOptions.UpdateInterface;
     
    154147end;
    155148
    156 procedure TFormOptions.FormClose(Sender: TObject; var CloseAction: TCloseAction
    157   );
    158 begin
    159   Core.Core.PersistentForm1.Save(Self);
    160 end;
    161 
    162149procedure TFormOptions.FormCreate(Sender: TObject);
    163150begin
    164151  with Core.Core do begin
    165     Translator.TranslateComponentRecursive(Self);
    166     ThemeManager.UseTheme(Self);
    167152    ThemeManager.Themes.LoadToStrings(ComboBoxTheme.Items);
    168153    Translator.LanguageListToStrings(ComboBoxLanguage.Items);
Note: See TracChangeset for help on using the changeset viewer.