[NUG] How to "scroll" text?

Norman Palardy npalardy at great-white-software.com
Wed Mar 13 12:58:41 CDT 2019


> On Mar 13, 2019, at 11:44 AM, James Wagner <wagnejam99 at comcast.net> wrote:
> 
> Greetings xojousers -
> 
> 
> 
> Working on an in-house application that I want to do "right" as it may go outside.
> 
> 
> 
> At several places in the GUI, I want to have text continually updated as one might see from a "stopwatch", which, in fact, it is. I would like it to still be at least somewhat responsive to button clicks. Is a timer still the preferred way to do this?

As long as you keep the code run by the timer sort and fast then you should not have any UI glitches
If it has to do a lot more work then a thread that periodically fires a timer action would work
You can do a lot more work in the thread code and then to do the update of the UI make the timer ire its action event once and do as little as possible in there to keep things responsive





More information about the Nug mailing list