forked from chiefexb/bankpristav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bankpristav_u3.pas
58 lines (47 loc) · 1.37 KB
/
bankpristav_u3.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
unit bankpristav_u3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Mask, DBCtrls, ComCtrls, ShellCtrls, Buttons;
type
TForm3 = class(TForm)
btn1: TButton;
dlgOpen1: TOpenDialog;
ListBox1: TListBox;
ListBox2: TListBox;
BitBtn1: TBitBtn;
procedure dbedtINPATHDblClick(Sender: TObject);
procedure dbedtINARCPATHDblClick(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form3: TForm3;
implementation
{$R *.dfm}
procedure TForm3.dbedtINPATHDblClick(Sender: TObject);
begin
// if form3.dlgOpen1.Execute then Form3.dbedtINPATH.Text:=ExtractFilePath(form3.dlgOpen1.FileName);
end;
procedure TForm3.dbedtINARCPATHDblClick(Sender: TObject);
begin
// if form3.dlgOpen1.Execute then Form3.dbedtINARCPATH.Text:=ExtractFilePath(form3.dlgOpen1.FileName);
end;
procedure TForm3.FormShow(Sender: TObject);
begin
//
//form3.dlgOpen1.InitialDir:=ExtractFileDir(Application.ExeName)
end;
procedure TForm3.BitBtn1Click(Sender: TObject);
var
i:integer;
begin
//listbox2.Items.
for i:=0 to listbox1.Items.Count-1 do
if listbox1.Selected[i] then listbox2.Items.Add(listbox1.Items[i]) ;
end;
end.