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:
As you can see, Im not really sure how to use the alphasetvalue for setting dropdown options.
Any help is greatly appreciated.
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.