Search code examples
codenameone

Ticker mode in Codename One


In another thread regarding multi-line text values in Codename One buttons, one of the answers referenced using "ticker mode." In theory, this ought to allow a line of text that is longer than the element's width to scroll across the display area of the element.

I have searched the javadoc and other resources but cannot find any reference to how this is enabled/disabled. OR even if it actually exists.

How does one enable/disable ticker mode for a button, label, or multi-button in CN1? Reference to documentation would be helpful.


Solution

  • try Label.setTickerEnabled(boolean tickerEnabled). Same with all components that extend Label. The documentation is here. There are a couple of other ticker related methods as well.