X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2351b3fe410cb1b4ea78276658e22af1c36bfc5..50e08f9d2ffe18437dce14a5b8cc5385f5e51e80:/src/univ/button.cpp?ds=inline diff --git a/src/univ/button.cpp b/src/univ/button.cpp index f04966be28..7bda74e449 100644 --- a/src/univ/button.cpp +++ b/src/univ/button.cpp @@ -128,9 +128,9 @@ bool wxButton::Create(wxWindow *parent, SetLabel(label); if (bitmap.Ok()) - SetImageLabel(bitmap); // SetBestSize called by SetImageLabel() + SetImageLabel(bitmap); // SetInitialSize called by SetImageLabel() else - SetBestSize(size); + SetInitialSize(size); CreateInputHandler(wxINP_HANDLER_BUTTON); @@ -327,12 +327,14 @@ void wxButton::SetImageMargins(wxCoord x, wxCoord y) m_marginBmpX = x + 2; m_marginBmpY = y + 2; - SetBestSize(wxDefaultSize); + SetInitialSize(wxDefaultSize); } -void wxButton::SetDefault() +wxWindow *wxButton::SetDefault() { m_isDefault = true; + + return wxButtonBase::SetDefault(); } // ============================================================================