Autor Beitrag
Xadron
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 102

XP
C++, D7, HTML
BeitragVerfasst: Fr 04.05.07 14:40 
Wollte in einer Edit.text die Zeit des Vortschrittes eines Liedes Zeigen, doch es steht dort immer eine 0, auch wenn das Lied läuft.

ausblenden Quelltext
1:
edit3.text:=inttostr(mediaplayer1.TrackPosition[1]);					

_________________
|x-32:88x+39-3|+3:21=47-4x
Silas
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 478

Windows XP Home
Delphi 2005, RAD Studio 2007, MASM32, FASM, SharpDevelop 3.0
BeitragVerfasst: Fr 04.05.07 15:06 
Ich hab zwar noch nie mit TMediaPlayer gearbeitet, aber bist du sicher, dass der Index von Trackposition 1 sein muss? Normalerweise ist das erste Array-Element immer null.

_________________
Religionskriege sind nur Streitigkeiten darüber, wer den cooleren imaginären Freund hat ;-)
stigge
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 426

WinXP
Delphi 2007
BeitragVerfasst: Fr 04.05.07 15:16 
edit3.text:=inttostr(mediaplayer1.Position);

Das sollte schon reichen :wink: