Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I want MESSAGEBOX to time out.
Message
 
 
To
26/06/1998 14:14:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00111994
Message ID:
00112016
Views:
29
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform