Changeset 105 for trunk/Forms/UFormSettings.pas
- Timestamp:
- Oct 11, 2016, 3:56:47 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormSettings.pas
r102 r105 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 Menus, ULanguages;9 Menus, Spin, ULanguages; 10 10 11 11 type … … 16 16 ButtonOk: TButton; 17 17 ButtonCancel: TButton; 18 CheckBoxAutomaticDPI: TCheckBox; 18 19 CheckBoxStartMinimizedToTray: TCheckBox; 19 20 CheckBoxStartOnLogon: TCheckBox; … … 21 22 ComboBoxLanguage: TComboBox; 22 23 Label1: TLabel; 24 Label2: TLabel; 25 SpinEditDPI: TSpinEdit; 23 26 procedure ButtonOkClick(Sender: TObject); 27 procedure CheckBoxAutomaticDPIChange(Sender: TObject); 24 28 procedure CheckBoxStartOnLogonChange(Sender: TObject); 25 29 procedure FormCreate(Sender: TObject); … … 58 62 end; 59 63 64 procedure TFormSettings.CheckBoxAutomaticDPIChange(Sender: TObject); 65 begin 66 UpdateInterface; 67 end; 68 60 69 procedure TFormSettings.CheckBoxStartOnLogonChange(Sender: TObject); 61 70 begin … … 73 82 CheckBoxStartOnLogon.Checked := Core.StartOnLogon; 74 83 CheckBoxStartMinimizedToTray.Checked := Core.StartMinimizedToTray; 84 CheckBoxAutomaticDPI.Checked := Core.ScaleDPI1.AutoDetect; 85 SpinEditDPI.Value := Core.ScaleDPI1.DPI.X; 75 86 UpdateInterface; 76 87 end; … … 81 92 Core.StartOnLogon := CheckBoxStartOnLogon.Checked; 82 93 Core.StartMinimizedToTray := CheckBoxStartMinimizedToTray.Checked; 94 Core.ScaleDPI1.AutoDetect := CheckBoxAutomaticDPI.Checked; 95 Core.ScaleDPI1.DPI := Point(SpinEditDPI.Value, SpinEditDPI.Value); 83 96 end; 84 97 … … 86 99 begin 87 100 CheckBoxStartMinimizedToTray.Enabled := CheckBoxStartOnLogon.Checked; 101 SpinEditDPI.Enabled := not CheckBoxAutomaticDPI.Checked; 102 Label2.Enabled := not CheckBoxAutomaticDPI.Checked; 88 103 end; 89 104
Note:
See TracChangeset
for help on using the changeset viewer.