[go: up one dir, main page]

Menu

[r338]: / trunk / urechindic.pas  Maximize  Restore  History

Download this file

95 lines (76 with data), 3.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{********************************************************************************
*** AlarmeJT ***
*** AlarmeJT is designed to work with exellent WSJT -X Joe Taylor, K1JT ***
*** running on JT65A, JT9 and FT8 modes. ***
*** ------------------------------------------------------------------- ***
*** version : 0.8 UDP beta ***
*** ------------------------------------------------------------------- ***
*** Copyright 2017 Alain Thébault (F5JMH) ***
*** ***
*** This file is part of AlarmeJT. ***
*** ***
*** AlarmeJT is free software: you can redistribute it and/or modify ***
*** it under the terms of the GNU General Public License as published by ***
*** the Free Software Foundation, either version 2.0 of the License, or ***
*** any later version. ***
*** ***
*** AlarmeJT is distributed in the hope that it will be useful, ***
*** but WITHOUT ANY WARRANTY; without even the implied warranty of ***
*** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ***
*** GNU General Public License for more details. ***
*** ***
*** You should have received a copy of the GNU General Public License ***
*** along with AlarmeJT. If not, see <http://www.gnu.org/licenses/>. ***
*** ***
*** ------------------------------------------------------------------- ***
********************************************************************************}
unit urechindic;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
ufonction, IniFiles;
type
{ TFRechIndic }
TFRechIndic = class(TForm)
BRecherche: TButton;
ERechIndic: TEdit;
procedure BRechercheClick(Sender: TObject);
procedure FormActivate(Sender: TObject);
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
procedure FormCreate(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
FRechIndic: TFRechIndic;
FConfigLang: TIniFile;
implementation
{$R *.lfm}
{ TFRechIndic }
procedure TFRechIndic.BRechercheClick(Sender: TObject);
begin
RechSimple('CALL',ERechIndic.Text);
close;
end;
procedure TFRechIndic.FormActivate(Sender: TObject);
begin
ERechIndic.Text:='';
end;
procedure TFRechIndic.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
WritePositionFenetre(self, 'RechIndic', 'AFenRechIndic');
FRechIndic:=nil;
FRechIndic.Free;
end;
procedure TFRechIndic.FormCreate(Sender: TObject);
begin
ReadPositionFenetre(self, 'RechIndic', 'AFenRechIndic');
FConfigLang := TIniFile.Create(ExtractFilePath(Application.ExeName)+'lang/'+langue()+'/lang.jmh');
Caption:=FConfigLang.ReadString('RechIndic', 'FenCap', '');
BRecherche.Caption:=FConfigLang.ReadString('RechIndic', 'BRecherche', '');
FConfigLang.Free;
end;
end.