Uses two timers. One indexes through the display itself, the other indexes through the active messages. There’s a property change script that starts the opposite timer when it is not running. So the net effect is like this:
[ul][li]Index the first timer until it finds an active message.[/li]
[li]Load message into the buffer with spaces padding before and after.[/li]
[li]Index through the buffer as a substring. Each increment of the index moves the diplayed text one character to the left.[/li]
[li]After the buffer has been indexed, restart the message indexer to find the next one.[/li][/ul]
Something of a work of art, if I do say so myself-- which, of course, I do.
EDIT All three versions are now in one download at this post.
Sorry to dig up an old thread here, but I was looking for examples of a scrolling marquee. This one would display active alarms of a certain severity in our maintenance area(s).
JordanCClark had attached some examples but unfortunately they don’t appear to be on the server anymore.
Things have changed a bit meanwhile. The template repeater now has a build-in marquee mode. This even works when you only add one template to the repeater.
Here’s an update on Jordan’s marquee using system.gui.transform. It’s simpler and doesn’t need as many objects or bindings. Just set the root container’s time property to the length of time in milliseconds for the message to cross the container. It should cope with different length of container or message.
Multiple messages is left as an exercise for the reader.
I have tired for multiple messages… i getting message from database to text field…
i am passing in to text field as string hello, welcome, testing (like this )
Is there any better way to do it for multiple message… because i am getting the text message from database
This scrolling shows jerky movements if we swap this window with any other window and then swap back to original window. Any suggestion to overcome this issue with system.gui.transform.?