Autor Beitrag
deagle
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89



BeitragVerfasst: Mo 16.09.02 22:47 
Wie kann ich in Delphi ein Uhr einfügen ?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 16.09.02 23:19 
Nimm einen Timer, findes du im System-Seitenreiter der Komponentenleiste.
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Di 17.09.02 07:54 
Die Anzeige der Uhrzeit muss du dann im OnTimer Event natürlich selbst machen. :D

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
deagle Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89



BeitragVerfasst: Di 17.09.02 16:55 
ahhmmm Wie mach ich das den ?
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Di 17.09.02 18:24 
Hi
in der einfachsten Variante so:
ausblenden Quelltext
1:
2:
3:
4:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
  label1.Caption := FormatDateTime('hh:nn:ss', Time);
end;

Die Ereignisprozedur wird vom Timer im einstellten Intervall ausgelöst. Dabei wird die aktuelle Uhrzeit ausgelesen und in ein Label geschrieben.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 18.09.02 18:19 
am besten du gehts mal auf www.torry.net und suchst mal nach "clock" ich denke, da wirst du viel finden.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 18.09.02 20:11 
matze hat folgendes geschrieben:
am besten du gehts mal auf www.torry.net und suchst mal nach "clock" ich denke, da wirst du viel finden.


Aber sonst geht es dir noch gut ja? :shock: Wo für soll er denn da eine Komponente von Torry nehmen?
Wenn du dafür schon eine Komponente brauchst... :roll:

Selbst wenn es eine Zeigeruhr sein soll, ist es nur etwas Trigonemtrie und etwas Canvas gepinsel. :?
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 18.09.02 20:14 
ja mir geht es noch gut 8)

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 18.09.02 20:19 
Und wie sieht es mit einer Antwort auf meine zweite Frage aus? :?:
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 19.09.02 19:49 
naja... ich bin mal so dreist und schliesse von mir auf deagle. Daraus folgt: Ich könnte mir nicht mal eben mit Trionemtrie und etwas Canvas was pinseln

_________________
In the beginning was the word.
And the word was content-type: text/plain.
SpeedyGTD
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89



BeitragVerfasst: Fr 20.09.02 01:10 
Mal so ne dumme frage, ist es nicht viel einfacher einfach
ausblenden Quelltext
1:
Label1.Caption:=TimeToStr(Now)					

zu verwenden?

das nehme ich meistens da das einfacher als FormatDateTime ist :lol:

_________________
...hab ich vergessen ;)
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Fr 20.09.02 07:23 
Hi SpeedyGTD
ist eigentlich Jacke wie Hose. Bei TimeToStr wirds halt immer im LongTimeFormat dargestellt. Ich würd sagen: reine Geschmacksache.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...