Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you make the bell sound?
Message
De
19/11/1998 19:21:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00159523
Message ID:
00159597
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform