Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Stoppuhr in StatusBar (https://www.delphipraxis.net/81041-stoppuhr-statusbar.html)

iron 19. Nov 2006 17:34


Stoppuhr in StatusBar
 
Hallo Ihr Profis,

Hab da mal ein kleines Problem für Euch, für mich ein großes.
Ich möchte gerne ne Stoppuhr in ne StatusBar einbauen.

Hab es bisher so gemacht:

Delphi-Quellcode:
if FTP.Connected then
 begin
   Label4.Caption := inttostr(strtoint(Label4.Caption) + 1);
 end;

 if(strtoint(Label4.Caption) = 60) then
  begin
   Label3.Caption := inttostr(strtoint(Label3.Caption) + 1);
   Label4.Caption := inttostr(0);
  end;

 if(strtoint(Label3.Caption) = 60) then
  begin
   Label1.Caption := inttostr(strtoint(Label1.Caption) + 1);
   Label3.Caption := inttostr(0);
  end;
Das geht auch soweit sogut
nur sieht es mir nicht gut genug aus, und ich möchte dieses gerne in ne Statusbar haben, wo es dann z.B.
Serververbindungszeit: 00:00:00 angezeigt wird.

hab auch schon was von der GetTickCount Variante gehört und gelesen, aber irgendwie komm ich nicht weiter. :wall:
Wär schön wenn mir einer weiterhelfen könnte mit ner Lösung oder was Ihr so auf Lager habt

DP-Maintenance 19. Nov 2006 17:54

DP-Maintenance
 
Dieses Thema wurde von "Phoenix" von "Programmieren allgemein" nach "Sonstige Fragen zu Delphi" verschoben.
Delphithema -> Delphi Sparte

EDatabaseError 19. Nov 2006 18:12

Re: Stoppuhr in StatusBar
 
Such mal in der CodeLibrary da gibt es was ;-)


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:16 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz