One way to do this is to use an Int kptimer and set it to 10 every keypress.
Inside the timer (if set at 1 second ticks) IF kptimer >= 0 then DEC kptimer 'decrement if kptimer = 0 then 'timeout 10 seconds..do something. 'kptimer will stay at -1 after that until reset to 10. So, the timer control always runs. -Fernando ---------- Original Message ----------- From: richard terry <rte...@pacific.net.au> To: mailing list for gambas users <gambas-user@lists.sourceforge.net> Sent: Wed, 1 Apr 2009 07:45:35 +1100 Subject: [Gambas-user] Timer question > I want to be able to reset the timers time to 0 at will, without stopping the > timer, so that I can link it to the keypress of a textbox. Every time the > user hits a key, the place the timer is up to is reset, once they lag, then > the timer event fires. > > Dosn't seem to be such a property. > > Thanks. > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user