Page 1 of 1
Q: Wrap Actor Text
Posted:
Sun Jul 02, 2006 12:10 am
by zupernoc
I have an actor placed at the top of the view in a 240x320 window. I am assigning text to the actor using strcpy. It has become apparent though, that some of my assigned text is going off the screen out of view.
Is there a method to wrap the text to stay on the screen?
Thank you.
Posted:
Sun Jul 02, 2006 1:02 am
by DilloDude
To stop text going off the screen, you can use a smaller font, or put a new line in the string. The new line character is '\n'. Alternatively you could have the text scrolling across the top, depending on the effect you want. If you like, I can write a function to do this.
Posted:
Tue Aug 01, 2006 2:10 am
by zupernoc
Thank you for the offer - very generous. However, I am just looking to wrap text. Currently im using \n , but was wondering if wrapping text was built in.. some how. Thanks!