Dynamically change text box size with amount of text

Q&A about the latest versions
Post Reply
User avatar
KRitchie
Posts: 59
Joined: Tue Apr 21, 2020 10:59 am
Location: Philadelphia, PA

Is there a way to dynamically change the size of a text field by the amount of text that is entered into it? I have a text box populating from the description field $(hd). Throughout my tour there various descriptions of different lengths and I would like to just have one element that can handle this and change the dimensions of the text field dynamically.

Any ideas?

Thanks
- Kevin
User avatar
Hopki
Gnome
Posts: 13027
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Kevin,
If its just length then all you have to do is set the scaling anchor.
As an example, if you had the text box top left of the window you would use the settings:

1.png
1.png (14.44 KiB) Viewed 1289 times

Then set aline left and auto-size.

2.png
2.png (12.22 KiB) Viewed 1289 times

You may also want to add so left and right padding, say 4px.
This is found under the text box properties.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
KRitchie
Posts: 59
Joined: Tue Apr 21, 2020 10:59 am
Location: Philadelphia, PA

Thanks Hopki - that did the trick!
Post Reply