Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wave file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00466138
Message ID:
00466150
Vues:
12
>>I have telphone.jpg and i have telphone.wav
>>
>>telphone.wav is ringing sound of telephone.
>>
>>Now what should happend when i click on the telphone.jpg than telphone.wav should start ring .
>>how to do.
>
>Hello, Mohammed.
>
>Just put your JPG as the Picture of an Image control on a form.
>
>In its Click() method, issue:
>
>SET BELL TO "telphone.wav"
>?? chr(7)
>
>
>Hope this helps.


Just a simple addition to what Martín said:
You can place the Set Bell to command right after the line ?? chr(7).
You don't need to wait for resetting it till the wav stopped.
So the code will look like:
Set bell to 'telphone.wav'
?? chr(7)
set bell to
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform