const wxBitmap& bitmap,
const wxPoint& pos,
const wxSize& size, long style,
- const wxValidator& wxVALIDATOR_PARAM(validator),
+ const wxValidator& validator,
const wxString& name)
{
if ( !wxBitmapButtonBase::Create(parent, id, pos, size, style,
SetBitmapLabel(bitmap);
+ if ( !size.IsFullySpecified() )
+ {
+ // As our bitmap has just changed, our best size has changed as well so
+ // reset the initial size using the new value.
+ SetInitialSize(size);
+ }
+
return true;
}