If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
I have wxListCtrl with report style and 3 column headers. I'm trying to add data, but there is a problem - how to set labels for all colums in one row?
Why not write a method in a wxListItem or wxListCtrl inherited class that takes a single string as parameter that accepts the separator '\t' (for example). You just have to parse the string.
So report style is completely unusefull, because there are empty cells - I wonder that they can't be filled
Why not write a method in a wxListItem or wxListCtrl inherited class that takes a single string as parameter that accepts the separator '\t' (for example). You just have to parse the string.
How to do this? String parsing is not a problem. But every string is displayed in first column in report mode and - as you said above, there is no any method to access mulitple colums in the same row. So, how to display parsed "Test 2" string next to "Test 1", but below second column header (it also should move when column is resized)
You make first a InsertItem to fill the 1st column. InsertItem then returns the index of the new item.
For each next column, you use wxListCtrl::SetItem