How do I tell if a text object is showing ALL its text?

Get help using Construct 2

Post » Thu Jul 23, 2015 6:36 pm

I want to determine if a text object is large enough to show all the text it is supposed so if not, I can show an ellipses (...) if not.

Are there any conditions to test for this?
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

Post » Thu Jul 23, 2015 7:12 pm

perhaps you can use the expression text.textheight and text.textwidth then resize the text object (works also with spritefont object)
Note: the Text object must be drawn before these have the correct values( C2 needs a delay between 0.1 and 0.2 sec)
Image Image
B
25
S
14
G
136
Posts: 876
Reputation: 71,005


Return to How do I....?

Who is online

Users browsing this forum: MassimoF and 33 guests