主题:有人问题请教???
delphishiyuhe
[专家分:10] 发布于 2006-04-27 16:09:00
请问用了statusbat1后在窗体加上timer1,如何用TForm1.Timer1Timer事件完成时间显示???
回复列表 (共2个回复)
沙发
huitian [专家分:1410] 发布于 2006-04-27 17:47:00
设timer的interval为1000:
procedure Tfinecontrol1.DateTimerTimer(Sender: TObject);
begin
statusbar1.Panels[0].Text:='当前日期时间:'+datetostr(date())+chr(32)+timetostr(time()); (*显示日期时间*)
end;
我来回复