Use wxBitmapBundle in wxHeaderColumn in samples
This commit is contained in:
parent
33d8510d41
commit
8f43e103e9
2 changed files with 2 additions and 2 deletions
|
|
@ -882,7 +882,7 @@ void MyFrame::BuildDataViewCtrl(wxPanel* parent, unsigned int nPanel,
|
|||
wxDataViewColumn *column5 =
|
||||
new wxDataViewColumn( "custom", cr, 5, wxCOL_WIDTH_DEFAULT, wxALIGN_LEFT,
|
||||
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 );
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ void HeaderCtrlWidgetsPage::RecreateWidget()
|
|||
if ( m_colSettings[i].chkWithBitmap->IsChecked() )
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue