}
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
return wxBitmap(name, bitmapType);
}
}
- return wxNullBitmap;
+#ifndef __WXGTK__
+ return wxNullBitmap;
+#endif
}
else
{