Autor Beitrag
bonanza
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Mi 21.12.05 15:32 
Hi,
ich habe in Form1 eine musik mit SndPlaySound aufgerufen, möchte aber, wenn ich form 2 öffne die aus Form1 pausieren...und nachdem ich Form2 geschlossen habe diese wieder abspielen...
wie kann ich das realisieren?

danke
bonanza
Danny87
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Mi 21.12.05 15:45 
wenn ich mich nicht irre, dann geht das, wenn du die form2 mit
ShowModal
aufrufst

ausblenden Delphi-Quelltext
1:
Form2.ShowModal;					


ich kann mich aber auch irren, hab keine gelegenheit ums zu testen (bin auf arbeit)
bonanza Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Mi 21.12.05 15:48 
ja ich weiß wie ich die form aufrufe, aber ich möchte, dass wenn FOrm2 geöffnet ist der sound aus form1 pausiert oder gestoppt wird.
und wenn form2 wieder geschlossen ist sie wieder startet.
Danny87
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Mi 21.12.05 15:58 
ich kenn mich mit SndPlay nicht aus deswegen hier nur durch kommentare gekennzeichnet was zu machen ist
ausblenden Delphi-Quelltext
1:
2:
3:
// SndPlay -> Pause
Form2.ShowModal;
// SndPlay -> Play


So müsste es eigentlich gehen. Aber wie gesagt ist mir SndPlay fremd.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 21.12.05 16:10 
Delphi Hilfe oder mal Suchen zb.hier
www.delphi-forum.de/...41494&highlight=
Danny87
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Mi 21.12.05 16:14 
Mir is SndPlay ziemlich egal, weil ich nur datenbanken programmiere... blackheart666
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 21.12.05 19:58 
Hallo !
@Danny87 - Wer sich die Jacke anzieht... Die Antworten beziehen sich zumeist auf den Fragesteller !
Danny87
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Do 22.12.05 09:42 
er wollte aber nicht wissen, wie er den sound generell pausieren kann, sondern wie er es anstellt, dass der sound pausiert, wenn er form2 öffnet und wieder weiterläuft, wenn er form 2 schliesst.