-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDialogForm.pas
70 lines (59 loc) · 1.64 KB
/
DialogForm.pas
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
unit DialogForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, inifiles, unCalckConstants, UnConstants;
type
TfDialog = class(TForm)
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
BitBtn3: TBitBtn;
lMessage: TLabel;
procedure BitBtn3Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
FNextStep: Integer;
protected
function GetSectionName: string; virtual;
public
HelpIndex: Integer;
property SectionName: string read GetSectionName;
end;
var
fDialog: TfDialog;
implementation
uses ActnList, menus, UnUDBFunctions;
{$R *.DFM}
procedure TfDialog.BitBtn3Click(Sender: TObject);
begin
Application.HelpContext(HelpIndex);
end;
procedure TfDialog.FormCreate(Sender: TObject);
var IniFile: TIniFile;
TempStr: string;
begin
{ IniFile:=TIniFile.Create('UnCalckLang.lan');
try
self.Font.Name:=UnConstants.DefaultFontName;
self.Font.Charset:=UnConstants.DefaultCharSet;
//TempStr:=DeconvertString(IniFile.ReadString(Self.Name, Self.Name, ''));
TempStr:=DeconvertString(IniFile.ReadString(SectionName, SectionName, ''));
if TempStr = '' then
begin
if Self.Caption <> '' then
IniFile.WriteString(SectionName, SectionName, ConvertString(Self.Caption));
//IniFile.WriteString(Self.Name, Self.Name, ConvertString(Self.Caption));
end
else
Self.Caption:=TempStr;
FNextStep:=1;
// CheckLanguige(FNextStep, IniFile, Self, SectionName);
finally
IniFile.Free;
end;}
end;
function TfDialog.GetSectionName: string;
begin
Result:='fDialog';
end;
end.