Changeset 68 for trunk/Forms
- Timestamp:
- Sep 28, 2014, 2:36:03 PM (10 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormSettings.lfm
r55 r68 29 29 object Label1: TLabel 30 30 Left = 20 31 Height = 2 531 Height = 22 32 32 Top = 26 33 Width = 9533 Width = 80 34 34 Caption = 'Language:' 35 35 ParentColor = False … … 37 37 object ComboBoxLanguage: TComboBox 38 38 Left = 178 39 Height = 3 739 Height = 34 40 40 Top = 24 41 41 Width = 196 … … 46 46 object CheckBoxDevelMode: TCheckBox 47 47 Left = 16 48 Height = 2 748 Height = 24 49 49 Top = 80 50 Width = 1 7650 Width = 157 51 51 Caption = 'Developer mode' 52 52 TabOrder = 3 53 53 end 54 object SpinEditAnimSpeed: TSpinEdit 55 Left = 184 56 Height = 32 57 Top = 120 58 Width = 122 59 TabOrder = 4 60 end 61 object Label2: TLabel 62 Left = 19 63 Height = 22 64 Top = 126 65 Width = 140 66 Caption = 'Animation speed:' 67 ParentColor = False 68 end 69 object Label3: TLabel 70 Left = 311 71 Height = 22 72 Top = 128 73 Width = 15 74 Caption = '%' 75 ParentColor = False 76 end 54 77 end -
trunk/Forms/UFormSettings.lrt
r55 r68 4 4 TFORMSETTINGS.LABEL1.CAPTION=Language: 5 5 TFORMSETTINGS.CHECKBOXDEVELMODE.CAPTION=Developer mode 6 TFORMSETTINGS.LABEL2.CAPTION=Animation speed: 7 TFORMSETTINGS.LABEL3.CAPTION=% -
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.