Text scrolling

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Text scrolling

      Hello,

      I would like to do text scrolling using STemWin...
      I would like to display a sentence and, when the end of the text arrived at the top of the display, the end of the setence begins to appear at the bottom of the display...
      I don't really how to explain it... That is what we call text scrolling :)

      What is the best way to do it?

      Thanks in advance.

      Tonave
    • Hi,

      do you mean text wrapping? This can be achieved using the function GUI_DispStringInRectWrap(). As parameter for the wrap mode you can choose between char-wise wrapping (GUI_WRAPMODE_CHAR) and word-wise wrapping (GUI_WRAPMODE_WORD).

      If you mean text scrolling like on a smart phone (scrolling by swiping), you should take a look at the attached example.

      Best regards,

      Florian
      Files