X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2351b3fe410cb1b4ea78276658e22af1c36bfc5..b4d9758e1cdb956c3a1ec88998cfe00f260a05e2:/src/univ/button.cpp 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(); } // ============================================================================