Changeset 149 for trunk/Forms/FormOptions.pas
- Timestamp:
- Jun 5, 2024, 9:58:43 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormOptions.pas
r145 r149 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 7 Spin, ComCtrls, ExtCtrls, Target, Theme ;7 Spin, ComCtrls, ExtCtrls, Target, Theme, FormEx; 8 8 9 9 type … … 11 11 { TFormOptions } 12 12 13 TFormOptions = class(TForm )13 TFormOptions = class(TFormEx) 14 14 ButtonOk: TButton; 15 15 ButtonCancel: TButton; … … 44 44 procedure CheckBoxOptimizeCopyMultiplyChange(Sender: TObject); 45 45 procedure CheckBoxOptimizeRelativeIndexesChange(Sender: TObject); 46 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);47 46 procedure FormCreate(Sender: TObject); 48 procedure FormShow(Sender: TObject);49 47 public 50 48 procedure UpdateInterface; … … 62 60 63 61 { TFormOptions } 64 65 procedure TFormOptions.FormShow(Sender: TObject);66 begin67 Core.Core.PersistentForm1.Load(Self);68 end;69 62 70 63 procedure TFormOptions.UpdateInterface; … … 154 147 end; 155 148 156 procedure TFormOptions.FormClose(Sender: TObject; var CloseAction: TCloseAction157 );158 begin159 Core.Core.PersistentForm1.Save(Self);160 end;161 162 149 procedure TFormOptions.FormCreate(Sender: TObject); 163 150 begin 164 151 with Core.Core do begin 165 Translator.TranslateComponentRecursive(Self);166 ThemeManager.UseTheme(Self);167 152 ThemeManager.Themes.LoadToStrings(ComboBoxTheme.Items); 168 153 Translator.LanguageListToStrings(ComboBoxLanguage.Items);
Note:
See TracChangeset
for help on using the changeset viewer.