
It's usual that we need to write inside a Scrolling Text. But really we will write inside an object Text inside the Scrolling Text.
Like we did creating that quiz in previous lesson we need to open the Menu of the Text and set: "embed into Transform Morph".

A trick is: to do the right division of the words we need to know how many digits (a "m" is good for tests) we will have at each line and use the method of the object String:
withNoLineLongerThan: n

Remember that you need to change the width of Text to the width of the Scrolling Text.
Another trick is to change the height of the Scrolling Text to define better the scrolling tab.
Play with our demo. Change the text, the size etc. Is the best way to learn.
If we like to have a "carriage return" inside the text, we will use the method of String:
withCRs
Look the next example and try to play it (copy and paste inside the Editor) at our demo desktop.
Remember to do the "accept" after to change a script!
| a | a := 'WARNING\This example is very simple, only to show how we can put many lines at a Scrolling Text. Really we put the text at a Text inside the Scrolling Text.'. a := a withCRs. self setCharacters: (a withNoLineLongerThan: 20)
PREVIOUS LESSON NEXT LESSON T. CONTENTS HOMEPAGE
