// no disabled bitmap specified but we still need to
// fill the space in the image list with something, so
// we grey out the normal bitmap
- wxImage imgGreyed;
- wxCreateGreyedImage(bmp.ConvertToImage(), imgGreyed);
+ wxImage
+ imgGreyed = bmp.ConvertToImage().ConvertToGreyscale();
#ifdef wxREMAP_BUTTON_COLOURS
if ( remapValue == Remap_Buttons )
{
// if not set yet, have one column
m_maxRows = 1;
- SetRows(m_nButtons);
+ SetRows(m_nButtons);
}
InvalidateBestSize();
tool->SetNormalBitmap(bitmap);
Realize();
- }
+ }
}
void wxToolBar::SetToolDisabledBitmap( int id, const wxBitmap& bitmap )
tool->SetDisabledBitmap(bitmap);
Realize();
- }
+ }
}
// ----------------------------------------------------------------------------