|
From: Nick S. <nic...@gm...> - 2008-01-08 04:04:30
|
(Sending to the user list as well, since the devel list seems to be
inactive... Is this project maintained?)
Hi,
I was trying to set items in a ListBox today, but the current
selectListBoxItem() function seems to be incorrect (at least, on the
version of Windows XP I'm using... do the meaning of these Windows
messages change between versions?)
It does:
win32gui.SendMessage(hwnd, win32con.LB_SETCURSEL, item, 0)
_sendNotifyMessage(hwnd, win32con.LBN_SELCHANGE)
Whereas via trial and error it seems that the following works:
win32gui.SendMessage(hwnd, win32con.LB_SETCURSEL, onOrOff, item)
Where "item" is the index of the listbox item you want to change, and
onOrOff is 1 or 0.
Is this a known issue? Any chance of it being fixed?
Thanks,
Nick
|