回 帖 发 新 帖 刷新版面

主题:有人问题请教???

请问用了statusbat1后在窗体加上timer1,如何用TForm1.Timer1Timer事件完成时间显示???

回复列表 (共2个回复)

沙发

设timer的interval为1000:

procedure Tfinecontrol1.DateTimerTimer(Sender: TObject);
begin
 statusbar1.Panels[0].Text:='当前日期时间:'+datetostr(date())+chr(32)+timetostr(time());          (*显示日期时间*)
end;

板凳

不错,顶

我来回复

您尚未登录,请登录后再回复。点此登录或注册