How to redraw the clock?

Posted on
  • I want to show a message with E.showMessage(), but then redraw the clock after 3 seconds.
    How to do that?

  • Something like this?

    E.showMessage("bar", "foo");
    setInterval(()=>{load();}, 3000);
    
  • Yes, totally! Thanks.

  • Oh. This reloads my widget and resets the timer variable.
    Is there a way just to redraw?

  • There's no 'standard' way of forcing a redraw of the whole application I'm afraid (apart from reloading the whole app as was mentioned above). Obviously if it's your app you can ensure you have a draw function or something like that, but not everyone does that.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

How to redraw the clock?

Posted by Avatar for gfric @gfric

Actions