X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/22756322824e8f377b792897209d052ca9281534..384b8d9f3d9e239d5e639e406c4703a9ccbf8ad6:/src/osx/tglbtn_osx.cpp?ds=sidebyside diff --git a/src/osx/tglbtn_osx.cpp b/src/osx/tglbtn_osx.cpp index cc70d3aaec..c381cd4eda 100644 --- a/src/osx/tglbtn_osx.cpp +++ b/src/osx/tglbtn_osx.cpp @@ -47,8 +47,8 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString& name) { - m_macIsUserPane = FALSE ; - + DontCreatePeer(); + if ( !wxControl::Create(parent, id, pos, size, style, validator, name) ) return false; @@ -111,8 +111,8 @@ bool wxBitmapToggleButton::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString& name) { - m_macIsUserPane = FALSE ; - + DontCreatePeer(); + m_bitmap = label; m_marginX =