Dynamic Resize of a Textfield depending on its Text

Get help using Construct 2

Post » Wed Feb 11, 2015 6:26 am

Hi,

any suggestion to set and get the needed width and height of a Textfield (not Box) depending on its content and fonts at a specific size?

My aim is to fill a limited area with the same textfields until no more fields can take place. Later these textfields should also get different content external loaded.

Hope you understand what I mean :)

Thanks for your ideas!
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Wed Feb 11, 2015 8:16 am

Done.

TextHeight & TextWidth do the Job. Didnt know these expressions are available.

Best regards!
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Wed Feb 11, 2015 9:57 am

.... still open, since I cant read out the actual font size of the textfield.

Any suggestions welcome :)
B
15
S
3
G
5
Posts: 396
Reputation: 4,977


Return to How do I....?

Who is online

Users browsing this forum: Nifl and 2 guests