Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make screen saver in VFP Apps.
Message
From
26/12/2002 21:14:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/12/2002 20:58:08
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00735977
Message ID:
00735980
Views:
19
>Hi All,
>
>I want to make a thing like screen saver in my apps. In certain time, if no touch to keyboard or mouse click, my apps will activate a screen do something that like screen saver.
>
>Please help me solve my problem.
>
>Thanks in advance.

Basically, you need a Timer control. Set the interval to 5 minutes (convert that to miliseconds, for instance, 5 * 60 * 1000). In the Timer Event, start your screensaver. Note: the Timer Event starts after the elapsed time.

Also, every time the user presses any key, you would have to Reset() the Timer. This is the tricky part. Probably you would need to intercept Form.KeyPress(), set Form.KeyPreview to .T., and do all this in your base form. I don't know how to intercept clicks on the menu.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform