Changeset 99 for trunk/Forms/UFormSettings.pas
- Timestamp:
- Dec 26, 2014, 3:04:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormSettings.pas
r97 r99 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 Spin ;9 Spin, ComCtrls; 10 10 11 11 type … … 17 17 ButtonCancel: TButton; 18 18 CheckBox1: TCheckBox; 19 CheckBox2: TCheckBox; 19 20 CheckBoxDevelMode: TCheckBox; 20 21 ComboBoxLanguage: TComboBox; … … 22 23 Label2: TLabel; 23 24 Label3: TLabel; 25 Label4: TLabel; 26 Label5: TLabel; 27 PageControl1: TPageControl; 28 SpinEditX: TSpinEdit; 29 SpinEditY: TSpinEdit; 24 30 SpinEditAnimSpeed: TSpinEdit; 31 TabSheetGeneral: TTabSheet; 32 TabSheetDebug: TTabSheet; 33 procedure CheckBox2Change(Sender: TObject); 34 procedure FormCreate(Sender: TObject); 35 procedure FormShow(Sender: TObject); 25 36 private 26 37 { private declarations } … … 42 53 { TFormSettings } 43 54 55 procedure TFormSettings.CheckBox2Change(Sender: TObject); 56 begin 57 SpinEditX.Enabled := not CheckBox2.Checked; 58 SpinEditY.Enabled := not CheckBox2.Checked; 59 end; 60 61 procedure TFormSettings.FormCreate(Sender: TObject); 62 begin 63 PageControl1.TabIndex := 0; 64 end; 65 66 procedure TFormSettings.FormShow(Sender: TObject); 67 begin 68 69 end; 70 44 71 procedure TFormSettings.Load; 45 72 begin … … 49 76 CheckBoxDevelMode.Checked := Core.DevelMode; 50 77 SpinEditAnimSpeed.Value := Core.AnimationSpeed; 78 CheckBox2.Checked := Core.ScaleDPI1.AutoDetect; 79 SpinEditX.Value := Core.ScaleDPI1.DPI.X; 80 SpinEditY.Value := Core.ScaleDPI1.DPI.Y; 51 81 {$IFDEF DEBUG} 52 CheckBoxDevelMode.Visible := True;82 TabSheetDebug.Visible := True; 53 83 {$ELSE} 54 CheckBoxDevelMode.Visible := False;84 TabSheetDebug.Visible := False; 55 85 {$ENDIF} 56 86 end; … … 62 92 Core.DevelMode := CheckBoxDevelMode.Checked; 63 93 Core.AnimationSpeed := SpinEditAnimSpeed.Value; 94 Core.ScaleDPI1.AutoDetect := CheckBox2.Checked; 95 Core.ScaleDPI1.DPI := Point(SpinEditX.Value, SpinEditY.Value); 64 96 end; 65 97
Note:
See TracChangeset
for help on using the changeset viewer.