Wanted to have a smooth scrolling message for an initial screen in one of my programs, and couldn't find anything pre-built into Android, so of course, something that should have taken just a few lines of code, turned into a couple day extravaganza to develop a re-usable module for future projects!
Attached find my code for anyone else that desires something like this as a starting point.
It uses a canvas attached to a label, with movement of the text controlled by a timer. Scrolling speed can be controlled by timer_tick ms and by setting the number of pixels that text moves each tick.
Ability to add and subtract messages into the queue is demonstrated with this demo.
Oh, and it is type advMarquee, because my first marquee used simple text control on the label, but that proved very, very choppy... especially with different languages. (and it was type Marquee :sign0013
Does require the very convenient ADR Strings module by Margret.
Attached find my code for anyone else that desires something like this as a starting point.
It uses a canvas attached to a label, with movement of the text controlled by a timer. Scrolling speed can be controlled by timer_tick ms and by setting the number of pixels that text moves each tick.
Ability to add and subtract messages into the queue is demonstrated with this demo.
Oh, and it is type advMarquee, because my first marquee used simple text control on the label, but that proved very, very choppy... especially with different languages. (and it was type Marquee :sign0013
Does require the very convenient ADR Strings module by Margret.