XLNT help with label

Blitz3D Forums/Blitz3D Beginners Area/XLNT help with label

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Here's sample code that works for me:

Include "XSTART.BB"

Graphics 800, 600, 16, 2

GUI_GFXSETUP()

MyWin=GUI_WINDOW( -1,-1, 400,200, "Label Test" )

lblTileNumber = GUI_label( MyWin, 50,100, 100,20, "this text will be replaced" )
T$ = "tile:" + tileindex + "/" + maxtiles
GUI_SetText( lblTilenumber, t$ )

GUI_OPENWIN( MyWin )

Repeat
	SetBuffer BackBuffer() : Cls
	GUI()
	Flip
Until EV_WIN_CLOSE( MyWin ) Or KeyDown( 1 )

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?)