1 { KOL MCK } // Do not remove this line!
8 uses Windows
, Messages
, ShellAPI
, KOL
{$IFNDEF KOL_MCK}, mirror
, Classes
,
9 mckCtrls
, Controls
{$ENDIF},IdBaseComponent
, IdComponent
,
10 IdTCPConnection
, IdTCPClient
, IdWhois
;
13 Windows
, Messages
, SysUtils
, Classes
, Graphics
, Controls
, Forms
, Dialogs
,
19 {$I MCKfakeClasses.inc}
26 KOLProject1
: TKOLProject
;
29 edDomain
: TKOLEditBox
;
32 procedure KOLForm1FormCreate(Sender
: PObj
);
33 procedure btLookupClickClick(Sender
: PObj
);
34 procedure edDomainKeyDown(Sender
: PControl
; var Key
: Integer;
37 { Private declarations }
39 { Public declarations }
43 Form1
{$IFDEF KOL_MCK} : PForm1
{$ELSE} : TForm1
{$ENDIF} ;
47 procedure NewForm1( var Result
: PForm1
; AParent
: PControl
);
52 {$IFNDEF KOL_MCK} {$R *.DFM} {$ENDIF}
58 procedure TForm1
.KOLForm1FormCreate(Sender
: PObj
);
60 IdWhoIs1
:=NewIdWhoIs(nil);
63 procedure TForm1
.btLookupClickClick(Sender
: PObj
);
71 AResult
:= IdWhoIs1
.WhoIs(edDomain
.Text);
72 while Length(AResult
) > 0 do
74 iPos
:= Pos(#10, AResult
);
77 Delete(AResult
, 1, 1);
81 ALine
:= Copy(AResult
, 1, iPos
- 1);
82 meResults
.Add(ALine
+#13#10);
83 Delete(AResult
, 1, Length(ALine
));
88 procedure TForm1
.edDomainKeyDown(Sender
: PControl
; var Key
: Integer;
92 btLookup
.OnClick(@Self
);