Autor Beitrag
linux-freak-gf
Hält's aus hier
Beiträge: 13


Delphi 3
BeitragVerfasst: So 09.03.03 17:03 
Hi

Könnt ihr mirhelfen??
Ich benutze in meinenm programme die function:
ausblenden Quelltext
1:
timetostr (now)					

ich sehe dann nur die uhrzeit, die als die function ausgeführt wurde.
Ich will aber standig die aktuelle Uhrzeit sehen
Linux

Moderiert von user profile iconTino: Color-Tag entfernt.
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: So 09.03.03 17:23 
Dann benutz einen Timer und stell das Interval so ein, wie du es haben willst (in Millisekunden).

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: So 09.03.03 17:24 
Ich mache das ganze so :
ausblenden Quelltext
1:
2:
3:
4:
procedure TMainForm.TimerTimer(Sender: TObject);             
begin                                                                         
  StatusBar.Panels[1].Text := TimeToStr(Time) + ' / ' + DateToStr(Date);       
end;


Da wird mir die aktuelle Uhrzeit in meiner Statuszeile angezeigt. Geht natürlich auf mit einem Label. Du brauchst auch noch eine Timer-Komponente dazu.
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: So 09.03.03 17:32 
Das ist die Fortführung meines Vorschlages. Also erst Timer platzieren und dann auf TimerTimer reagieren, so wie du es willst.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.