initial commit
[rofl0r-KOL.git] / units / ftp / ftp_demo / DirBox.pas
blob152fed0aae96e0e6877747f1a1cda52056922951
1 { KOL MCK } // Do not remove this line!
2 {$DEFINE KOL_MCK}
3 unit DirBox;
5 interface
7 {$IFDEF KOL_MCK}
8 uses Windows, Messages, ShellAPI, KOL {$IFNDEF KOL_MCK}, mirror, Classes,
9 mckCtrls, Controls, Graphics {$ENDIF};
10 {$ELSE}
11 {$I uses.inc}
12 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
13 mckCtrls, mirror;
14 {$ENDIF}
16 type
17 {$IFDEF KOL_MCK}
18 {$I MCKfakeClasses.inc}
19 {$IFDEF KOLCLASSES} TForm5 = class; PForm5 = TForm5; {$ELSE OBJECTS} PForm5 = ^TForm5; {$ENDIF CLASSES/OBJECTS}
20 {$IFDEF KOLCLASSES}{$I TForm5.inc}{$ELSE} TForm5 = object(TObj) {$ENDIF}
21 Form: PControl;
22 {$ELSE not_KOL_MCK}
23 TForm5 = class(TForm)
24 {$ENDIF KOL_MCK}
25 KF: TKOLForm;
26 P1: TKOLPanel;
27 P2: TKOLPanel;
28 EB: TKOLEditBox;
29 B1: TKOLButton;
30 B2: TKOLButton;
31 LE: TKOLLabelEffect;
32 procedure B1Click(Sender: PObj);
33 procedure B2Click(Sender: PObj);
34 private
35 { Private declarations }
36 public
37 { Public declarations }
38 end;
40 var
41 Form5 {$IFDEF KOL_MCK} : PForm5 {$ELSE} : TForm5 {$ENDIF} ;
43 {$IFDEF KOL_MCK}
44 procedure NewForm5( var Result: PForm5; AParent: PControl );
45 {$ENDIF}
47 implementation
49 {$IFNDEF KOL_MCK} {$R *.DFM} {$ENDIF}
51 {$IFDEF KOL_MCK}
52 {$I DirBox_1.inc}
53 {$ENDIF}
55 procedure TForm5.B1Click(Sender: PObj);
56 begin
57 Form.ModalResult := 1;
58 Form.Hide;
59 end;
61 procedure TForm5.B2Click(Sender: PObj);
62 begin
63 Form.ModalResult := 1;
64 EB.Text := '';
65 Form.Hide;
66 end;
68 end.