-
Notifications
You must be signed in to change notification settings - Fork 2
/
unit2.pas
65 lines (49 loc) · 1.27 KB
/
unit2.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
unit Unit2;
{$mode objfpc}{$H+}
interface
uses
JLabeledIntegerEdit, Forms, Controls, StdCtrls, ExtCtrls,LocalizedForms;
type
{ TForm2 }
TForm2 = class(TLocalizedForm)
Button1: TButton;
Button2: TButton;
CheckBox1: TCheckBox;
JLabeledIntegerEdit1: TJLabeledIntegerEdit;
LabeledEdit1: TLabeledEdit;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure CheckBox1Change(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
protected
procedure UpdateTranslation(ALang: String); override;
end;
var
Form2: TForm2;
implementation
uses unit1;
{$R *.frm}
{ TForm2 }
procedure TForm2.CheckBox1Change(Sender: TObject);
begin
if Form2.CheckBox1.Checked then Form2.JLabeledIntegerEdit1.Enabled:=true;
if not(Form2.CheckBox1.Checked) then Form2.JLabeledIntegerEdit1.Enabled:=false;
end;
procedure TForm2.UpdateTranslation(ALang: String);
begin
inherited UpdateTranslation(ALang);
JLabeledIntegerEdit1.EditLabel.Caption:=rsInintialInde;
LabeledEdit1.EditLabel.Caption:=rsFixedPartOfL;
end;
procedure TForm2.Button1Click(Sender: TObject);
begin
ModalResult:=mrOK;
end;
procedure TForm2.Button2Click(Sender: TObject);
begin
ModalResult:=mrCancel;
end;
end.