Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I want MESSAGEBOX to time out.
Message
 
 
À
26/06/1998 14:14:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00111994
Message ID:
00112016
Vues:
28
>>How about making your own messagebox equivalent that times out? just make a modal form, with a timer on it to close the form after however much time you choose. If you call the form with:
>>
>>DO FORM mymessbox TO lvar
>>
>>IN the form somewhere set lvar to whatever result you get from pressing either button...
>>
>>And in the Unload RETURN lvar
>>
>>Jerry
>----
>Hi Jerry -
>that sounds great, but where to I put the timer? I did look for a timer
>property in the FORM and could not find one. can you give me a small code
>sample?
>
>thanks

The timer is a control you drop on the form. You set timer properties just like any other control -- like the amount of time to elapse before the timer fires. If you want the timer to fire after 5 seconds, you set that property to 5000 (1000 per second). In the timer, you would put something like ThisForm.Release().
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform