Name

lcdui.ticker — Creates a ticker that scrolls horizontally.

Synopsis

lcdui.ticker -text text

Description

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

Example

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