S
scorpions
Unregistered / Unconfirmed
GUEST, unregistred user!
program Project1;
uses
Forms,ExtCtrls;
{$R *.RES}
var
timer1:Ttimer;
procedure ontimer;
begin
timer1.Enabled :=false;
//
timer1.Enabled :=true;
end;
begin
Application.Initialize;
timer1:=Ttimer.Create (nil);
timer1.Interval :=1000;
timer1.OnTimer :=ontimer; //////不知procedure怎么转换成TNotifyEvent
Application.Run;
end.
应怎样给OnTimer事件附值。???
还有一问题:
delphi 写控制台程序,输出和输入是哪两个函数??(象C++的cout , cin)
uses
Forms,ExtCtrls;
{$R *.RES}
var
timer1:Ttimer;
procedure ontimer;
begin
timer1.Enabled :=false;
//
timer1.Enabled :=true;
end;
begin
Application.Initialize;
timer1:=Ttimer.Create (nil);
timer1.Interval :=1000;
timer1.OnTimer :=ontimer; //////不知procedure怎么转换成TNotifyEvent
Application.Run;
end.
应怎样给OnTimer事件附值。???
还有一问题:
delphi 写控制台程序,输出和输入是哪两个函数??(象C++的cout , cin)