Changeset 68 for trunk/Forms/UFormSettings.pas
- Timestamp:
- Sep 28, 2014, 2:36:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormSettings.pas
r55 r68 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 Spin; 9 10 10 11 type … … 18 19 ComboBoxLanguage: TComboBox; 19 20 Label1: TLabel; 21 Label2: TLabel; 22 Label3: TLabel; 23 SpinEditAnimSpeed: TSpinEdit; 20 24 private 21 25 { private declarations } … … 40 44 begin 41 45 Core.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items); 42 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language); 43 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 44 CheckBoxDevelMode.Checked := Core.DevelMode; 46 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language); 47 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 48 CheckBoxDevelMode.Checked := Core.DevelMode; 49 SpinEditAnimSpeed.Value := Core.AnimationSpeed; 45 50 end; 46 51 … … 50 55 Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 51 56 Core.DevelMode := CheckBoxDevelMode.Checked; 57 Core.AnimationSpeed := SpinEditAnimSpeed.Value; 52 58 end; 53 59
Note:
See TracChangeset
for help on using the changeset viewer.