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"
|
#include "wx/wx.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/artprov.h"
|
||||||
#include "wx/dataview.h"
|
#include "wx/dataview.h"
|
||||||
#include "wx/datetime.h"
|
#include "wx/datetime.h"
|
||||||
#include "wx/splitter.h"
|
#include "wx/splitter.h"
|
||||||
@@ -689,6 +690,7 @@ void MyFrame::BuildDataViewCtrl(wxPanel* parent, unsigned int nPanel, unsigned l
|
|||||||
wxDataViewColumn *column5 =
|
wxDataViewColumn *column5 =
|
||||||
new wxDataViewColumn( "custom", cr, 5, -1, wxALIGN_LEFT,
|
new wxDataViewColumn( "custom", cr, 5, -1, wxALIGN_LEFT,
|
||||||
wxDATAVIEW_COL_RESIZABLE );
|
wxDATAVIEW_COL_RESIZABLE );
|
||||||
|
column5->SetBitmap(wxArtProvider::GetBitmap(wxART_INFORMATION, wxART_MENU));
|
||||||
m_ctrl[0]->AppendColumn( column5 );
|
m_ctrl[0]->AppendColumn( column5 );
|
||||||
|
|
||||||
|
|
||||||
|
@@ -264,7 +264,9 @@ class wxDataViewHeaderWindow : public wxHeaderCtrl
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxDataViewHeaderWindow(wxDataViewCtrl *parent)
|
wxDataViewHeaderWindow(wxDataViewCtrl *parent)
|
||||||
: wxHeaderCtrl(parent)
|
: wxHeaderCtrl(parent, wxID_ANY,
|
||||||
|
wxDefaultPosition, wxDefaultSize,
|
||||||
|
wxHD_DEFAULT_STYLE | wxHD_BITMAP_ON_RIGHT)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user