Changeset 105 for trunk/Forms
- Timestamp:
- Oct 11, 2016, 3:56:47 PM (8 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r104 r105 1 1 object FormMain: TFormMain 2 Left = 4492 Left = 520 3 3 Height = 447 4 Top = 3 964 Top = 378 5 5 Width = 782 6 6 Caption = 'Acronym Decoder' -
trunk/Forms/UFormSettings.lfm
r96 r105 74 74 TabOrder = 5 75 75 end 76 object CheckBoxAutomaticDPI: TCheckBox 77 Left = 18 78 Height = 24 79 Top = 191 80 Width = 120 81 Caption = 'Automatic DPI' 82 OnChange = CheckBoxAutomaticDPIChange 83 TabOrder = 6 84 Visible = False 85 end 86 object SpinEditDPI: TSpinEdit 87 Left = 96 88 Height = 28 89 Top = 221 90 Width = 97 91 MaxValue = 300 92 MinValue = 96 93 TabOrder = 7 94 Value = 96 95 Visible = False 96 end 97 object Label2: TLabel 98 Left = 48 99 Height = 20 100 Top = 221 101 Width = 26 102 Caption = 'DPI:' 103 ParentColor = False 104 Visible = False 105 end 76 106 end -
trunk/Forms/UFormSettings.lrt
r70 r105 6 6 TFORMSETTINGS.CHECKBOXSTARTONLOGON.CAPTION=Start on user logon 7 7 TFORMSETTINGS.CHECKBOXSTARTMINIMIZEDTOTRAY.CAPTION=Start minimized to tray 8 TFORMSETTINGS.CHECKBOXAUTOMATICDPI.CAPTION=Automatic DPI 9 TFORMSETTINGS.LABEL2.CAPTION=DPI: -
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.