Einzelnen Beitrag anzeigen

Benutzerbild von Garfield
Garfield

Registriert seit: 9. Jul 2004
Ort: Aken (Anhalt-Bitterfeld)
1.334 Beiträge
 
Delphi XE5 Professional
 
#2

Re: Mediaplayer Spielzeit richtig anzeigen

  Alt 25. Nov 2004, 20:05
Delphi-Quellcode:
MediaPlayer1.TimeFormat := tfHMS;
PosMedia := MediaPlayer1.Position;
PosMedia ist ein LongInt.

Delphi-Quellcode:
HMSRecord = record
  Hours : byte;
  Minutes : byte;
  Seconds : byte;
  NotUsed : byte;
end;

with HMSRecord[PosMedia] do
  Label2.Caption := IntToStr(Hours) + ':' + IntToStr(Minutes) + ':' + IntToStr(Seconds);
So was ähnliches müsste auch in der Hilfe von Delphi stehen.
Gruss Garfield
Ubuntu 22.04: Laz2.2.2/FPC3.2.2 - VirtBox6.1+W10: D7PE, DXE5Prof
  Mit Zitat antworten Zitat