Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWTimer - How to start the timer again?
#3
the issue here is that when you do this:

Code:
procedure TIWForm1.IWEdit1AsyncKeyDown(Sender: TObject;
  EventParams: TStringList);
begin
  StartTime := Now;
  IWTimer1.Enabled  := false;
  IWTimer1.Enabled  := true;
  laStartTime.Caption := TimeToStr(StartTime);
end;

you are not actually disabling and enabling the timer. The state actually didn't change so it keeps running.

I'm doing a little modification to our code to reset the timer in such a scenario. Stay tuned for a new update.

Cheers
Reply


Messages In This Thread
RE: IWTimer - How to start the timer again? - by Alexandre Machado - 02-13-2021, 11:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)