ListCtrl - is there an event which fires on each select (even if already selected)

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.

Anyone has a tip what event I could use instead?

Werner

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.

Anyone has a tip what event I could use instead?

--
Robin Dunn
Software Craftsman

Hi Robin,

···

On 23/04/2012 18:38, Robin Dunn wrote:

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.

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.

Will give this a try.

Thanks
Werner