55 lines
1.0 KiB
ObjectPascal
55 lines
1.0 KiB
ObjectPascal
unit Unit1;
|
|
|
|
interface
|
|
|
|
uses
|
|
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, DoStatusIO,
|
|
CoreCipher;
|
|
|
|
type
|
|
TForm1 = class(TForm)
|
|
Memo1: TMemo;
|
|
Button1: TButton;
|
|
procedure Button1Click(Sender: TObject);
|
|
procedure FormCreate(Sender: TObject);
|
|
procedure FormDestroy(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
procedure DoStatusNear(AText: string; const ID: Integer = 0);
|
|
end;
|
|
|
|
var
|
|
Form1: TForm1;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure TForm1.Button1Click(Sender: TObject);
|
|
begin
|
|
Button1.Visible:=False;
|
|
TestCoreCipher;
|
|
Button1.Visible:=True;
|
|
end;
|
|
|
|
procedure TForm1.DoStatusNear(AText: string; const ID: Integer);
|
|
begin
|
|
Memo1.Lines.Add(AText);
|
|
Application.ProcessMessages;
|
|
end;
|
|
|
|
procedure TForm1.FormCreate(Sender: TObject);
|
|
begin
|
|
AddDoStatusHook(Self, DoStatusNear);
|
|
end;
|
|
|
|
procedure TForm1.FormDestroy(Sender: TObject);
|
|
begin
|
|
DeleteDoStatusHook(Self);
|
|
end;
|
|
|
|
end.
|