32 views
in GUI Development by
Hi, I am having an issue with timers in V9.20.

If I use Timer.Enabled = true and Timer.Enabled = false, everything is fine.

As soon as I use Timer.restart( 0, xxx ), I cannot get the timer to stop, either with Timer.Enabled = false or Timer.StopTimer.

I have used debug traces to ensure it is not being re-triggered.

1 Answer

0 votes
by

Hello Phil,

the method restart() is an internal method not intended to be used and the method is not documented. In order to restart a timer, just set the property Enabled to the value false and true:

Timer.Enabled = false;
Timer.Enabled = true;

See also our documentation Start, stop and restart the Timer object.

Does it help you further?

Best regards

Paul Banach

by
Yes, that explains it.

Unfortunately I have used it in many places, successfully in most of them.

I will strip it out and use the correct method.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...