Put column images on the right side in generic wxDataViewCtrl
For consistency with wxListCtrl under MSW (which is the only platform where this change has any effect, as wxHD_BITMAP_ON_RIGHT is only supported there), put the column images on the right side in wxDataViewCtrl too. Closes #13350.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
#include "wx/artprov.h"
|
||||
#include "wx/dataview.h"
|
||||
#include "wx/datetime.h"
|
||||
#include "wx/splitter.h"
|
||||
@@ -689,6 +690,7 @@ void MyFrame::BuildDataViewCtrl(wxPanel* parent, unsigned int nPanel, unsigned l
|
||||
wxDataViewColumn *column5 =
|
||||
new wxDataViewColumn( "custom", cr, 5, -1, wxALIGN_LEFT,
|
||||
wxDATAVIEW_COL_RESIZABLE );
|
||||
column5->SetBitmap(wxArtProvider::GetBitmap(wxART_INFORMATION, wxART_MENU));
|
||||
m_ctrl[0]->AppendColumn( column5 );
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user