以下為原代碼
(這裡給timer設置了
unit Unit
interface
uses
Windows
Dialogs
type
TForm
Memo
Button
Timer
procedure Timer
procedure Button
private
{ Private declarations }
public
procedure AppMessageHandler(var Msg:TMsg;var Handled:Boolean);
{ Public declarations }
end;
var
Form
implementation
{$R *
{ TForm
procedure TForm
begin
if (msg
end;
procedure TForm
begin
timer
if Timer
end;
procedure TForm
begin
close;
end;
end
From:http://tw.wingwit.com/Article/program/PHP/201311/21226.html