XLNT help with label

Blitz3D Forums/Blitz3D Beginners Area/XLNT help with label

767pilot(Posted 2005) [#1]
Hi, have looked at the forums for XLNT UI but decided not to post there as hardly anybody has posts this year.

I have a label on a window and named it lblTilenumber, if I want to change the text do I do the following as it doesnt work?

T$="tile:" +tileindex +"/"+ maxtiles
GUI_SetText(txtTilenumber,t$)

thanks
Graham


WendellM(Posted 2005) [#2]
Use lblTilenumber instead of txtTilenumber:

GUI_SetText(lblTilenumber,t$)


767pilot(Posted 2005) [#3]
thanks but the above is my mistake, a typo !

The code has the correct lblTilenumber both as the name for the label and as a parameter to the function but it still doesnt work.

Any more ideas please?


Mikele(Posted 2005) [#4]
Global lblTilenumber?
(if you create label in function)


WendellM(Posted 2005) [#5]
Here's sample code that works for me:


If this works for you, Graham, then it may be a scope problem as Mikele suggests. If it doesn't work, then...? (Oh, and you are talking about XLnt ii, right?)


767pilot(Posted 2005) [#6]
thats it ! thanks a lot all

the prob was due to the objects not being declared global .

Yes and I have xlnt 2 !