No thats not it.
This was actually adding to the sound events like when windows loads it
plays a sound.
THen in the control panel, you can go to the "Sounds" section and you
specify what sound will play when an event happens.
Jeremy
-----Original Message-----
From: [EMAIL PROTECTED]
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Tue, 10 Jun 2003 10:15:39 +1200
Subject: RE: [DUG]: Custom Windows Sounds
> Hi Jeremy
>
> From memory...
>
> You need MMSystem in your uses clause.
>
> Put a wav file in your project directory, then when you want to play
> the
> sound:
>
> PlaySound('MyWavFileName', hInstance, SND_RESOURCE or SND_SYNC);
>
> Note that you don't put the file extension (.wav) in the file name
> above.
>
> HTH,
>
> Dave Jollie
> Tower NZ IT
> 09 368 4259
>
>
> -----Original Message-----
> From: vss [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 10 June 2003 9:56AM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Custom Windows Sounds
>
> Hi All.
> I remember a friend showing me that he was able to create custom
> windows
> sounds that go with the sounds like Windows open, windows Close etc.
> but
> they are ones you can call create events for, like, oh I dont know, the
> user clicks on a dateedit control or something.
> Has anyone else created custom sound events before?
>
>
> Jeremy
>
> -----------------------------------------------------------------------
> ----
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
> -----------------------------------------------------------------------
> ----
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/