 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
BobW Guest
|
Posted: Wed Jan 17, 2007 11:34 pm Post subject: Timer |
|
|
I want to use a TTimer to shut a program down if the
mouse move or key press has not been performed in
a period of time (15 minutes).
I put a TTimer (timer1) on my form. Set the interval
to 54000 (15*60*60). The OnTimer event looks like this:
Application.Terminate;
I was expecting to see a Reset method in the timer.
I don't see it. How do I tell the timer1 to start
counting again from zero OnMouseMove or OnKeyPress??
Thanks for any help,
Bob |
|
| Back to top |
|
 |
BobW Guest
|
Posted: Wed Jan 17, 2007 11:46 pm Post subject: Re: Timer |
|
|
Oops ... sent this to the wrong group. Bob
----------------
"BobW" <Testing (AT) Please (DOT) Ignore> wrote in message
news:45ae5dfe$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
I want to use a TTimer to shut a program down if the
mouse move or key press has not been performed in
a period of time (15 minutes).
I put a TTimer (timer1) on my form. Set the interval
to 54000 (15*60*60). The OnTimer event looks like this:
Application.Terminate;
I was expecting to see a Reset method in the timer.
I don't see it. How do I tell the timer1 to start
counting again from zero OnMouseMove or OnKeyPress??
Thanks for any help,
Bob
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|