The ListCtrl wx.EVT_LIST_ITEM_SELECTED only fires ones, which I guess is logical.
I use the ObjectListView which is a wrapper around ListCtrl and it has an option to check items, which one can then use to process all the checked items. However if I check an item, change my mind and un-check it I don't "know" about this until another item is selected.
Tried using wx.EVT_LIST_ITEM_FOCUSED but has same issue.
You'll probably have to intercept the lower-level mouse events before the listctrl gets them.
···
On 4/21/12 3:41 AM, Werner wrote:
Hi,
The ListCtrl wx.EVT_LIST_ITEM_SELECTED only fires ones, which I guess is
logical.
I use the ObjectListView which is a wrapper around ListCtrl and it has
an option to check items, which one can then use to process all the
checked items. However if I check an item, change my mind and un-check
it I don't "know" about this until another item is selected.
Tried using wx.EVT_LIST_ITEM_FOCUSED but has same issue.
The ListCtrl wx.EVT_LIST_ITEM_SELECTED only fires ones, which I guess is
logical.
I use the ObjectListView which is a wrapper around ListCtrl and it has
an option to check items, which one can then use to process all the
checked items. However if I check an item, change my mind and un-check
it I don't "know" about this until another item is selected.
Tried using wx.EVT_LIST_ITEM_FOCUSED but has same issue.
Anyone has a tip what event I could use instead?
You'll probably have to intercept the lower-level mouse events before the listctrl gets them.