A string is too big for a rect, how can I draw the rest of it underneath?

edited March 2015 in How To...

I was trying to work out how to use text width to work out if its larger than the box, I was going to then add a word to another string thats going to be drawn underneath, re measure, and if the string is too long append the next word to the beggining of the string beneath else it fits...

But it occured to me there might be a function allready for this, have to ask

Answers

  • _vk_vk
    Answer ✓

    Try text() with 4 parameters. First two for location, last for size of text box. See the reference. Hth

  • Ah yes, I thought there should have been more arguments, I think I need sleep

  • edited March 2015

    and/or enforce line break with \n

Sign In or Register to comment.