Reducing rectangle size according to typings

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
matteo.mannai
Posts: 11
Joined: Mon Aug 17, 2020 11:14 am

Thu Nov 19, 2020 12:21 pm

Hello everyone,

I was wondering if there is a way to reduce the rectangle size (e.g. for info popups) according to the number of letters on the popup.

Thank you in advance,

Matteo
User avatar
Hopki
Gnome
Posts: 10859
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Mon Nov 23, 2020 11:24 pm

Hi Matteo,
Under the text box properties set Auto Size.
Then you may want to add padding, also found under the text box properties.
Regards,
Hopki
Garden Gnome Software 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/
matteo.mannai
Posts: 11
Joined: Mon Aug 17, 2020 11:14 am

Thu Nov 26, 2020 12:44 pm

Thank you so much for your reply!!
matteo.mannai
Posts: 11
Joined: Mon Aug 17, 2020 11:14 am

Thu Nov 26, 2020 2:29 pm

My goal is to make the background rectangle smaller if say the typings are not a lot, but I don't want the rectangle to get bigger than the container if it overcomes its size. So far I tried to use autosize getting rid of the background rectangle but the outcome is not what I was hoping for.

I don't have anything in mind to get a logic under the rectangle that goes "if $(hd) is TEXTBOX SIZE MEASURES then change RECTANGLE SIZE". Any hint?
User avatar
Hopki
Gnome
Posts: 10859
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Thu Nov 26, 2020 2:42 pm

HI,
I can not say I fully understand, but let me try.
You want a text box to get larger if more text is added, but when it gets to a certain size it has to stop resizing and then use say a scroll bar?

A single text box can not do this, but you may be able to swop out text boxes depending tag, or any other trigger, as an example Hotspot title = xxx use text box size with a scroll bar.
Regards,
Hopki
Garden Gnome Software 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/
matteo.mannai
Posts: 11
Joined: Mon Aug 17, 2020 11:14 am

Thu Nov 26, 2020 5:24 pm

You are right! I didn't think about that solution and it's what I was looking for. An easy but super effective solution. Thank you!!
Post Reply