Changeset 151 for trunk/Forms/FormSettings.pas
- Timestamp:
- Jun 6, 2023, 11:15:57 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormSettings.pas
r149 r151 12 12 13 13 TFormSettings = class(TForm) 14 B evel1: TBevel;14 ButtonBrowse: TButton; 15 15 ButtonOk: TButton; 16 16 ButtonCancel: TButton; 17 CheckBoxAutomaticDPI: TCheckBox; 17 18 CheckBoxReopenLastFileOnStart: TCheckBox; 18 CheckBoxAutomaticDPI: TCheckBox;19 19 ComboBoxLanguage: TComboBox; 20 20 ComboBoxTheme: TComboBox; 21 EditCompareTool: TEdit; 21 22 EditDefaultVcardVersion: TEdit; 23 EditDefaultPhoneCountryPrefix: TEdit; 22 24 EditMapUrl: TEdit; 23 25 Label1: TLabel; 24 26 Label2: TLabel; 25 27 Label3: TLabel; 28 Label4: TLabel; 29 Label5: TLabel; 30 Label6: TLabel; 26 31 LabelDPI: TLabel; 32 OpenDialog1: TOpenDialog; 33 ScrollBox1: TScrollBox; 27 34 SpinEditDPI: TSpinEdit; 35 procedure ButtonBrowseClick(Sender: TObject); 28 36 procedure ButtonOkClick(Sender: TObject); 29 37 procedure CheckBoxAutomaticDPIChange(Sender: TObject); … … 71 79 end; 72 80 81 procedure TFormSettings.ButtonBrowseClick(Sender: TObject); 82 begin 83 OpenDialog1.InitialDir := ExtractFileDir(EditCompareTool.Text); 84 OpenDialog1.FileName := ExtractFileName(EditCompareTool.Text); 85 if OpenDialog1.Execute then begin 86 EditCompareTool.Text := OpenDialog1.FileName; 87 end; 88 end; 89 73 90 procedure TFormSettings.CheckBoxAutomaticDPIChange(Sender: TObject); 74 91 begin … … 101 118 EditDefaultVcardVersion.Text := DefaultVcardVersion; 102 119 EditMapUrl.Text := MapUrl; 120 EditCompareTool.Text := CompareTool; 121 EditDefaultPhoneCountryPrefix.Text := DefaultPhoneCountryPrefix; 103 122 end; 104 123 UpdateInterface; … … 113 132 DefaultVcardVersion := EditDefaultVcardVersion.Text; 114 133 MapUrl := EditMapUrl.Text; 134 CompareTool := EditCompareTool.Text; 135 DefaultPhoneCountryPrefix := EditDefaultPhoneCountryPrefix.Text; 115 136 end; 116 137 end;
Note:
See TracChangeset
for help on using the changeset viewer.