wxListCtrl and ClientData

BlitzMax Modules Forums/Brucey's Modules/wxListCtrl and ClientData

You shouldn't be casting away your wxListEvent object in the ListCtrl1Clicked() method.

Try using event.GetIndex() instead.

:-)

Also be very aware that currently wxListCtrls do not reference count any object you set in the item client data, so you'll need to keep a separate list around in order to prevent any objects added into the wxListCtrl from being GC'd.

This will be sorted in the future some time... just not had time to go over it yet.