you use this
function sndPlaySound(lpszSoundName: String; uFlags: cardinal):integer; external '
[email protected] stdcall';
example
sndPlaySound(ExpandConstant('{tmp}\ButtonSoundSele cted.wav'),$0001);
use these on default buttons
OnClick:=;
OnDblClick:=;
OnMouseDown:=;
use these for custom buttons (botva2 buttons)
BtnSetEvent(,BtnClickEventID,WrapBtnCallback(sndPl aySound(ExpandConstant('{tmp}\ButtonSoundSelected. wav'),$0001);,1));
BtnSetEvent(,BtnMouseEnterEventID,WrapBtnCallback( sndPlaySound(ExpandConstant('{tmp}\ButtonSoundSele cted.wav'),$0001);,1));