return false;
SetLabel(label);
- SetImageLabel(bitmap);
- // SetBestSize(size); -- called by SetImageLabel()
+
+ if (bitmap.Ok())
+ SetImageLabel(bitmap); // SetInitialSize called by SetImageLabel()
+ else
+ SetInitialSize(size);
CreateInputHandler(wxINP_HANDLER_BUTTON);
m_marginBmpX = x + 2;
m_marginBmpY = y + 2;
- SetBestSize(wxDefaultSize);
+ SetInitialSize(wxDefaultSize);
}
-void wxButton::SetDefault()
+wxWindow *wxButton::SetDefault()
{
m_isDefault = true;
+
+ return wxButtonBase::SetDefault();
}
// ============================================================================