How to play sounds with the button
It is possible to play sounds (WAV files) using the following properties:
SoundDown property to play a sound when the button is pressed.
SoundUp property to play a sound when the button is released.
SoundMouseOver property to play a sound when the mouse enters the button region.
SoundMouseOut property to play a sound when the mouse leaves the button region.
Each of these sounds can be enabled or disabled using the abmEnableSound
function; by default all the sounds are enabled.
By default each of these sounds is played asynchronously (i.e. when the sound is launched it is forgotten by the program): the user can change this behavior using the abmSetSoundSync