Set text/box size according to it's content

Get help using Construct 2

Post » Fri Dec 07, 2012 10:11 am

Hello fellas,

I can't find the way, how to change the text/text box size according to it's content. There's also no option like text container auto-resize.

Any work arounds?
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Sat Dec 08, 2012 3:09 am

Theres a variable in text objects called Text.TextWidth, just set the width to that number whenever needed.
B
40
S
12
G
7
Posts: 603
Reputation: 7,646

Post » Sat Dec 08, 2012 10:21 am

Thanks, didn't notice it.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267


Return to How do I....?

Who is online

Users browsing this forum: Rezzon71, tarek2 and 25 guests