ListBox is broken

BlitzPlus Forums/BlitzPlus Programming/ListBox is broken

JoshK(Posted 2004) [#1]
ListBox does not return an event when an arrow key is pressed to change the selection. It won't even return the selected item correctly if an arrow key is pressed.


MrCredo(Posted 2004) [#2]
this was reported a year ago :-)


JoshK(Posted 2004) [#3]
I even tried this to get the selected item, but it doesn't look like QueryObject() is returning the right handle:

LB_GETCURSEL=392
lbSel=SendMessage(QueryObject(listbox,1),LB_GETCURSEL,0,0)
lbSel=SendMessage(QueryObject(listbox,2),LB_GETCURSEL,0,0)

In both cases, 0 is returned, no matter the ListBox selection.