My setup : BlitzMaxNG (last version ... or near) compile with win64 (debug or release) not threaded (i've not tested in threaded mode)
InsertGadgetItem for listbox gadgets does not work unless there is at least 13 items in the listbox.
here is a small sample that reproduices the bug (hit the button several times until you start viewing an item added to the listbox -> I required 13)
Import MAXGUI.Drivers
Local w:TGadget = CreateWindow("win", 0,0,200,200,Null, WINDOW_TITLEBAR | WINDOW_CENTER | WINDOW_CLIENTCOORDS)
Local l:TGadget = CreateListBox(1,1,198,175,w)
Local b:TGadget = CreateButton("add item", 1,178,198,20,w)
Local c:Int = 0
Repeat
WaitEvent()
If EventId()=EVENT_WINDOWCLOSE Then End
If EventId()=EVENT_GADGETACTION And EventSource()=b Then AddgadgetItem(l,"obj."+c);c:+1
Forever
|