Autor Beitrag
Apollo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 125

Windows 7
Delphi 3 Prof., Delphi 2005
BeitragVerfasst: So 27.01.08 17:14 
Hallo Delphianer,
ich hab da mal ne Frage. Also: die Komponente MediaPlayer hat im Objektinspektor doch die Kategorie
Filename. Mit dem Mediaplayer möchte ich Musik abspielen. Das funktioniert auch so weit, aber nur mit der Datei, die ich als Filename angegeben habe. Ich will aber mehr als nur ein Lied abspielen können und habe es so probiert:
ausblenden Delphi-Quelltext
1:
2:
3:
opendialog1.execute;
If Opendialog1.execute then
Mediaplayer1.filename := opendialog1.filename;

tut sich aber nichts. Könnt ihr mir helfen? Danke im voraus.


Moderiert von user profile iconGausi: Topic aus VCL (Visual Component Library) verschoben am So 27.01.2008 um 21:24

_________________
Im Zweifelsfall immer das Richtige tun
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 27.01.08 17:19 
Da dürfte der Mediaplayer für Dummies genau das richtige für dich sein ;-)

_________________
We are, we were and will not be.
Apollo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 125

Windows 7
Delphi 3 Prof., Delphi 2005
BeitragVerfasst: So 27.01.08 18:29 
Super, danke für deine Hilfe :D
DrRzf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 260

Win XP Prof
D7 Enterprise
BeitragVerfasst: So 03.02.08 17:50 
ausserdem kanst du dir das erste Opendialog.Execute sparen, es reicht das in der if abfrage.

_________________
rein statistisch gesehen darf man keiner statistik trauen die man nicht selbst gefälscht hat.