-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuselfields.pas
57 lines (40 loc) · 896 Bytes
/
uselfields.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
unit uselfields;
{$mode ObjFPC}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, CheckLst, StdCtrls,
ExtCtrls;
type
{ TFSelFields }
TFSelFields = class(TForm)
Button1: TButton;
Button2: TButton;
CLB1: TCheckListBox;
Panel1: TPanel;
procedure CLB1DblClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
private
public
end;
var
FSelFields: TFSelFields;
implementation
uses
Global, MyLib;
{$R *.lfm}
{ TFSelFields }
procedure TFSelFields.FormCreate(Sender: TObject);
begin
TransCaption(Sender as TForm, rsStrings);
RestoreForm(Sender as TForm);
end;
procedure TFSelFields.CLB1DblClick(Sender: TObject);
begin
ShowMessage(IntToStr(clb1.ItemIndex));
end;
procedure TFSelFields.FormDestroy(Sender: TObject);
begin
SaveForm(Sender as TForm);
end;
end.