I’m having a bit of difficulty setting the style of a wxListCtrl (Linux platform).
When I use
SetSingleStyle(wxLC_REPORT, 1)
or
SetWindowStyleFlag(wxLC_REPORT)
I get a segmentation fault the next time I load data into the control. Note that
wxLC_SMALL_ICON and wxLC_LIST work just fine.
I have tried clearing the control first, but that does not help. Can anyone help me?
One other question: when I change the style to ICON or LIST, nothing is displayed.
Refreshing does not help. The only way I can get the data displayed in the new
style is to clear and reload the data. Is there any way round this?
regards
Roger