It's useful to be able to have a button column (up/down arrow buttons for moving rows, X button for deleting row, etc.) so how do I add a button column to a wxDataViewListCtrl?
One way is to use the wxDataViewIconText column without the text and use EVT_LEFT_UP to trigger a button press, but it seems very hacky to me and not ideal.
Another way is to write a custom renderer for a wxDataViewColumn that acts like a button, but that's pretty conplicated for such a simple task of adding a button.
So is there any simple way to add a button column that looks like a native wxButton (and ideally IS a wxButton)? Thanks.
How to add button column to wxDataViewListCtrl? Topic is solved
Re: How to add button column to wxDataViewListCtrl?
No. And you've correctly described the best two options.
wxRendererNative can help to draw a real looking button.
https://docs.wxwidgets.org/trunk/classw ... ative.html
Use the source, Luke!