// for compatibility with other ports, the buttons default size is never
// less than the standard one
+#ifndef __WXX11__
if ( !(GetWindowStyle() & wxBU_EXACTFIT) )
{
wxSize szDef = GetDefaultSize();
if ( width < szDef.x )
width = szDef.x;
}
+#endif
return wxSize(width, height);
}
void wxButton::SetImageMargins(wxCoord x, wxCoord y)
{
- m_marginBmpX = x;
- m_marginBmpY = y;
-
+ m_marginBmpX = x + 2;
+ m_marginBmpY = y + 2;
+
SetBestSize(wxDefaultSize);
}