When capturing this particular message I have noticed that the combo box control some how has the previous value for .Text.
Is this a bug or am I misunderstanding something about what I'm expecting (expecting cb.text to contain the current value of the control)+?
Code: Select all
onmessage(0x0111, handleMSG)
main := gui()
main.add("combobox", "vSearch w200", ["one", "two", "three"])
main.show()
return
handleMSG(wparam, lParam, msg, hwnd)
{
static CBN_SELCHANGE := 1
static cb := main["search"]
if (wParam & 0xFFFF0000) >> 16 = CBN_SELCHANGE
tooltip "CBN_SELCHANGE: " cb.text
else
tooltip
}
Any information as to what is going on? are my expectations wrong?