[Gambas-user] Timer question

nando nando_f at ...951...
Thu Apr 2 20:30:20 CEST 2009


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 <rterry at ...1946...>
To: mailing list for gambas users <gambas-user at 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list