Autor Beitrag
Maniacmd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

Windows XP
Delphi 7 Personal
BeitragVerfasst: Di 14.03.06 14:59 
hi
ich habe wenn man auf den schließen button drückt 2 aktionen programmiert
1 mal ein ton und einmal halt der befehl close
ich möchte eine aktion nach der anderen laufen lassen
sodass erst der ton abgespielt wird und dann das fenster geschlossen wird wie kann ich das machen?
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 14.03.06 15:01 
Was ist daran das Problem? :gruebel:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
Procedure TForm1.OnClose (Sender:TObject);
begin
//Ton abspielen
end;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Maniacmd Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

Windows XP
Delphi 7 Personal
BeitragVerfasst: Di 14.03.06 15:04 
ja ok aber er führt den close befehl auch direkt aus sodass der ton nicht mehr abgespielt wird oder man kann ich noicht mehr hören wie kann ich das machen dass das nacheinander geschieht?
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 14.03.06 15:07 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
Procedure TForm1.OnClose (Sender:TObject);
begin
//Ton abspielen
sleep(3000); //Hält das Programm für 3000 Millisekunden an
end;

Funktioniert das oder wird der Ton nicht abgespielt?
Wie spielst du denn den Ton ab?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Maniacmd Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

Windows XP
Delphi 7 Personal
BeitragVerfasst: Di 14.03.06 15:11 
cool danke so gehts
uich spiel den mit dem media player ab