Code: Select all
ColoredTextCustomRenderer::ColoredTextCustomRenderer() : wxDataViewCustomRenderer("void*", wxDATAVIEW_CELL_INERT, wxALIGN_CENTER)
I also want to use wxEVT_DATAVIEW_ITEM_ACTIVATED like this:
Code: Select all
void MainFrame::Data_view_list_ctrl_unstaged_on_data_view_list_ctrl_item_activated(wxDataViewEvent& event)
{
void* bla = event.GetValue().GetVoidPtr();
// Some more code goes here...
}
The event fires perfectly. The problem is that bla is always null and I don't understand why.
Can somebody please explain why it is always null?