卷 卷起千堆雪tyn Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-24 #4 procedure TForm1.Timer1Timer(Sender: TObject); var LT : TSYSTEMTIME; begin GetLocalTime(LT); StatusBar1.Panels[0].Text := IntToStr(LT.wHour) + ':' + IntToStr(LT.wMinute) + ':' + IntToStr(LT.wSecond)); end;
procedure TForm1.Timer1Timer(Sender: TObject); var LT : TSYSTEMTIME; begin GetLocalTime(LT); StatusBar1.Panels[0].Text := IntToStr(LT.wHour) + ':' + IntToStr(LT.wMinute) + ':' + IntToStr(LT.wSecond)); end;
小 小人物 Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-24 #5 procedure TForm1.Timer1Timer(Sender: TObject); begin StatusBar1.SimpleText:=timetostr(time); //或StatusBar1.Panels.Items[0].Text:=timetostr(time); end;
procedure TForm1.Timer1Timer(Sender: TObject); begin StatusBar1.SimpleText:=timetostr(time); //或StatusBar1.Panels.Items[0].Text:=timetostr(time); end;
C cqhxping Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-24 #7 Timer的响应代码: procedure TForm1.Timer1Timer(Sender: TObject); var Hour, Min, Sec, MSec: Word; begin DecodeTime(Now, Hour, Min, Sec, MSec); StatusBar1.Panels[0].Text:=Format('%d:%d:%d:%d',[Hour, Min, Sec, MSec]); end;
Timer的响应代码: procedure TForm1.Timer1Timer(Sender: TObject); var Hour, Min, Sec, MSec: Word; begin DecodeTime(Now, Hour, Min, Sec, MSec); StatusBar1.Panels[0].Text:=Format('%d:%d:%d:%d',[Hour, Min, Sec, MSec]); end;