XML Dialog - How to use variables for texts?

Just starting out? Need help? Post your questions and find answers here.
oO0XX0Oo
User
User
Posts: 78
Joined: Thu Aug 10, 2017 7:35 am

XML Dialog - How to use variables for texts?

Post by oO0XX0Oo »

Hi,

Creating normal GUIs that are perfectly resizable (which element becomes how
large depending on other elements) seems to be quite a hassle.

So I'd like to try out the Dialog library (even if menus aren't yet? supported).

I'm currently wondering, in an XML$ definition, how can I use variable names
to apply texts (in my case, the app should be able to display a GUI depending
on a selected language), e.g.:

Code: Select all

<button text='Save' />
How do I use a previously defined variable like:

Code: Select all

de_btn_1 = "Speichern"
or an element of a structure like:

Code: Select all

Translation\de_btn_1
instead of the string "Save" here?
Last edited by oO0XX0Oo on Tue Nov 21, 2017 1:08 pm, edited 1 time in total.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: XML Dialog - How to use variables for texts?

Post by davido »

@oO0XX0Oo,
May I suggest that you look at the following thread:
http://www.purebasic.fr/english/viewtop ... 90#p485490
DE AA EB
oO0XX0Oo
User
User
Posts: 78
Joined: Thu Aug 10, 2017 7:35 am

Re: XML Dialog - How to use variables for texts?

Post by oO0XX0Oo »

Ok, will do so. Thank you davido!
Post Reply