How to get/set text to change an image path on the fly

Q&A about the latest versions
Post Reply
MisterGasman
Posts: 21
Joined: Wed Aug 07, 2013 5:28 pm

Is there a command to get the text from a textbox and combine it to other text/textbox?
For example, i have 10 hotspots...
Every hotspot opens an popup screen with an image. That image shows one of the four language infoscreens.

An infoscreen is a picture loaded with a path: "export/images/01_EN.png" (EN= english)
I would like to able to change that path on the fly.
I have buttons for languages.... If U click "FRENCH" then it should change the path of the image to: export/images/01_FR.png
I have a textbox who contains the selected language (for example: "FR").
Can i use it like this : image link = "export/images/01_" + textbox.text
or even: image link = "export/images/" + hotspot01.name + "_" + textbox.text (when hotspot01.name = 01)

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

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/
Post Reply