}
if (bitmap.Ok())
control = new wxBitmapButton(parent, id, bitmap, pos, size,
- childResource->GetStyle(), wxDefaultValidator, childResource->GetName());
+ childResource->GetStyle() | wxBU_AUTODRAW, wxDefaultValidator, childResource->GetName());
}
else
// Normal, text button
// Force the layout algorithm since the size changes the layout
if (control->IsKindOf(CLASSINFO(wxRadioBox)))
{
- wxSize sz = control->GetSize();
control->SetSize(-1, -1, -1, -1, wxSIZE_AUTO_WIDTH|wxSIZE_AUTO_HEIGHT);
}
#endif
return wxBitmap(name, bitmapType);
}
}
- return wxNullBitmap;
+#ifndef __WXGTK__
+ return wxNullBitmap;
+#endif
}
else
{