lcdui.ticker — Creates a ticker that scrolls horizontally.
lcdui.ticker
-text text
The lcdui.ticker command creates a ticker that runs horizontally across the screen. For an in-depth look at the Java code that this command is based on, see: javax.microedition.lcdui.TextBox
set ticker [lcdui.ticker -text "The time is [clock format [clock time]]"]
set form [lcdui.form -title "Ticker Example" -ticker $ticker]
$form setcurrent
proc updateTicker {ticker} {
$ticker configure -text "The time is [clock format [clock time]]"
after 1000 [list updateTicker $ticker]
}
after 1000 [list updateTicker $ticker]
Live example: http://www.heclbuilder.com/scripts/show/155