Issue with Win32MaxGui Listbox

BlitzMax Forums/Brucey's Modules/Issue with Win32MaxGui Listbox

Bobysait(Posted 2016) [#1]
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



RustyKristi(Posted 2016) [#2]
No problems here. Once I click the button the first item appears. I'll send the exe if you like.


Bobysait(Posted 2016) [#3]
Maybe my blitzmax NG is not up to date ...
I'm going to check


RustyKristi(Posted 2016) [#4]
Yes with NG it does act strange. There's a skip of creating the item on random clicks.

I thought this was a vanilla issue.