Help on AlphaGUI

Blitz3D Forums/Blitz3D Userlibs/Help on AlphaGUI

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.

Iv been playing with this way awesome gui, and so far most things are fine. However, I am trying to dynamicly set the selectable objects in a dropdown box and having no luck at all. Heres the code:

Function loadStructures(filename$ = "models\structures.wdat")
	fn = ReadFile(filename$)
	alphasetvalue( "Select_Model" , 0, "") ; clear list?
	While Not Eof(fn)
		ln$ = ReadLine (fn)
		wd.obs = New obs
		wd\filename = ln$
		wd\mesh = LoadMesh (wd\filename$ )
		wd\id = lastWDID + 1
		lastWDID = lastWDID + 1
		ScaleEntity wd\mesh, 0.02, 0.02, 0.02
		EntityAlpha wd\mesh, 0.2
		HideEntity wd\mesh
		;alphasetvalue( "Select_Model" , wd\id, wd\filename$)
		namelist$ = namelist$ + wd\filename$ + "|"
		AlphaSetValue( "Select_Model" , wd\id, namelist$) ; add entry?
	Wend
	;alphasetvalue( "Select_Model" , wd\id, namelist$)
End Function


As you can see, Im not really sure how to use the alphasetvalue for setting dropdown options.

Any help is greatly appreciated.