1.1k views
in Embedded Wizard Studio by
Hello

I wonder if there is some kind of sleep/delay function. I just need part of my code to wait 200 msecs to go.

2 Answers

0 votes
by
Hi,

there is no sleep/delay function, in order to avoid that the UI application "hangs" for the sleep time.

If you want to trigger a certain action, you should use a timer instead.

This ensures, that the entire UI application can continue (e.g. draw animations) and that it is able to react on further user inputs.
0 votes
by

Hey,

in this case you should use timers, check: http://doc.embedded-wizard.de/using-animation-effects 

For example: Start a timer with 200ms duration, which fires a slot function when finished.
Ref: http://doc.embedded-wizard.de/timer

You can also use effects like the BoolEffect that are able to start delayed and provide an outlet, OnAnimate (do something while the timer is running) and OnFinished properties. Very comfortable.
Ref: http://doc.embedded-wizard.de/change-bool-effect

Best regards

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...