Add wxListCtrl::Set{Normal,Small}Images()

These new functions allow to use wxBitmapBundle for the images in this
control instead of wxImageList.

Update the sample to use the new API.
This commit is contained in:
Vadim Zeitlin
2021-11-11 00:50:20 +00:00
parent 9ea8feec37
commit aca0c74e60
11 changed files with 150 additions and 59 deletions

View File

@@ -5402,9 +5402,9 @@ long wxGenericListCtrl::GetNextItem( long item, int geom, int state ) const
return m_mainWin->GetNextItem( item, geom, state );
}
void wxGenericListCtrl::DoSetImageList( wxImageList *imageList, int which )
void wxGenericListCtrl::DoUpdateImages(int which )
{
m_mainWin->SetImageList( imageList, which );
m_mainWin->SetImageList( GetUpdatedImageList(which), which );
}
bool wxGenericListCtrl::Arrange( int WXUNUSED(flag) )