Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you make the bell sound?
Message
From
19/11/1998 19:21:06
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00159523
Message ID:
00159597
Views:
16
You can also use the MessageBeep Win32 API function:

DECLARE INTEGER MessageBeep IN Win32API ;
INTEGER nSoundType
= MessageBeep(lnSoundType)

where lnSoundType can be:
MB_ICONHAND 0x00000010
MB_ICONQUESTION 0x00000020
MB_ICONEXCLAMATION 0x00000030
MB_ICONASTERISK 0x00000040
MB_OK 0x00000000
Standard beep using the computer speaker 0xFFFFFFFF

For ex., if you want the question sound:
= MessageBeep(0x00000020)

The corresponding sounds are defined in ControlPanel/Sounds. If the sounds are not defined, than... better use the standard beep which works all the time.

Vlad

>Have reached a point in my app where I want the users attention. How do I make the bell sound?
>
>thanks - brenda
Previous
Reply
Map
View

Click here to load this message in the networking platform