Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Como controlar un timer
Message
From
08/01/2005 13:01:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
08/01/2005 11:28:19
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00975403
Message ID:
00975419
Views:
10
>como puedo hacer para evitar que un timer se ejecute si estan moviendo el mouse,presionando alguna tecla, o mas bien que propiedad o instrucion puedo utilizar para que el comportamiento del evento del timer se dipare cuando no haya ninguna actividad dentro de un tiempo determinado(como un protector de pantalla)

Cada vez que se aprieta una tecla, por ejemplo, reinicias el Timer, con el método Reset(). Así, sólo lo dejas contar los 2 minutos (por ejemplo), si no ocurre actividad.

Los detalles para un screen saver son algo complicados; me parece que hay varios eventos que tienes que interceptar.
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
Reply
Map
View

Click here to load this message in the networking platform