Scroller example

This example is very short and will illustrate one way to use a scroller. We'll omit the declaration of the text variable because it's a very long ipsum lorem . If you really want to see the full code, it's scroller_example_01.c.

We start our example by creating our window and background:

Next we create a label and set it's text to text(very long ipsum lorem):

We then create our scroller, ask that it have the same size as the window and set its content:

We are now going to set a number of properties in our scroller:

Our example will look like this: