05-20-2021 09:10 AM
Hi! I created a timed callback using createTimedCallback which I would like to disable for some time. Is this possible somehow or do I need to go the roundabout way of creating a timer that I tie the callback to instead? I have several timed callbacks but I would like to disable only this one, and not the others.
Thanks!
Solved! Go to Solution.
05-20-2021 09:31 AM
Hi,
you can call SetCtrlAttribute for the timer with the attribute ATTR_ENABLED set to false. This will disable the timer
05-20-2021 09:36 AM
Hi! Can you please elaborate? I didn't see the need to create a timer control, I simply called "createTimedCallback(myCallback, seconds_between_ticks);" and that seems to create a timer somewhere in the background, but I don't understand how to access it after its creation.
05-20-2021 09:41 AM
I have to admit that I don't know the function createTimedCallback...
05-20-2021 09:47 AM
Oooops.
So sorry. I apparently have fewer braincells than usual today. Of course you don't. Apparently it's a user defined function in the program... 😅 Sorry for wasting your time and thank you for the explanation of how to disable timers!
Have a nice day!
05-20-2021 09:48 AM
No problem, good luck with your project!