Use wxBitmapBundle in wxHeaderColumn in samples

This commit is contained in:
Alexander Koshelev
2022-02-18 10:59:04 +03:00
committed by Vadim Zeitlin
parent 33d8510d41
commit 8f43e103e9
2 changed files with 2 additions and 2 deletions

View File

@@ -882,7 +882,7 @@ void MyFrame::BuildDataViewCtrl(wxPanel* parent, unsigned int nPanel,
wxDataViewColumn *column5 = wxDataViewColumn *column5 =
new wxDataViewColumn( "custom", cr, 5, wxCOL_WIDTH_DEFAULT, wxALIGN_LEFT, new wxDataViewColumn( "custom", cr, 5, wxCOL_WIDTH_DEFAULT, wxALIGN_LEFT,
wxDATAVIEW_COL_RESIZABLE ); wxDATAVIEW_COL_RESIZABLE );
column5->SetBitmap(wxArtProvider::GetBitmap(wxART_INFORMATION, wxART_MENU)); column5->SetBitmap(wxArtProvider::GetBitmapBundle(wxART_INFORMATION, wxART_MENU));
m_ctrl[Page_Music]->AppendColumn( column5 ); m_ctrl[Page_Music]->AppendColumn( column5 );

View File

@@ -209,7 +209,7 @@ void HeaderCtrlWidgetsPage::RecreateWidget()
if ( m_colSettings[i].chkWithBitmap->IsChecked() ) if ( m_colSettings[i].chkWithBitmap->IsChecked() )
{ {
const wxArtID icons[] = { wxART_ERROR, wxART_QUESTION, wxART_WARNING, wxART_INFORMATION }; const wxArtID icons[] = { wxART_ERROR, wxART_QUESTION, wxART_WARNING, wxART_INFORMATION };
col.SetBitmap(wxArtProvider::GetIcon(icons[i % WXSIZEOF(icons)], wxART_BUTTON)); col.SetBitmap(wxArtProvider::GetBitmapBundle(icons[i % WXSIZEOF(icons)], wxART_BUTTON));
} }
m_header->AppendColumn(col); m_header->AppendColumn(col);
} }