Changeset 96 for trunk/Forms/UFormSettings.pas
- Timestamp:
- Aug 22, 2016, 9:31:44 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormSettings.pas
r86 r96 23 23 procedure ButtonOkClick(Sender: TObject); 24 24 procedure CheckBoxStartOnLogonChange(Sender: TObject); 25 procedure FormCreate(Sender: TObject); 25 26 procedure FormShow(Sender: TObject); 26 27 private … … 40 41 41 42 uses 42 U FormMain, UCore;43 UCore; 43 44 44 45 { TFormSettings } … … 46 47 procedure TFormSettings.FormShow(Sender: TObject); 47 48 begin 48 FormMain.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);49 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject( FormMain.CoolTranslator1.Language);49 Core.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items); 50 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language); 50 51 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 51 52 end; … … 54 55 begin 55 56 if ComboBoxLanguage.ItemIndex <> -1 then 56 FormMain.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);57 Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 57 58 end; 58 59 … … 60 61 begin 61 62 UpdateInterface; 63 end; 64 65 procedure TFormSettings.FormCreate(Sender: TObject); 66 begin 67 Core.CoolTranslator1.TranslateComponentRecursive(Self); 62 68 end; 63 69
Note:
See TracChangeset
for help on using the changeset viewer.