Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stop a timer from outside the dialogue routine
I need to stop a timer in a dialogue routine, from another routine outside this dialogue. So far I am using a globar variable, by changing its value I invoke KillTimer in the dialogue to stop timer. I wonder whether there exist a more elegant way to do it.

Thanks in advance,
SetTimer and KillTimer work from outside dialog, even from other thread in same process. Just need to know dialog window handle and timer id that was passed to SetTimer.

Macro Macro1819
Copy      Help
int w=win("Dialog" "#32770")
KillTimer w 1
Perfect !
Best personal regards, Simos.

Forum Jump:

Users browsing this thread: 1 Guest(s)