]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/tglbtn_osx.cpp
Fixed wxMessageBox with only an OK button returning wxCANCEL under MSW.
[wxWidgets.git] / src / osx / tglbtn_osx.cpp
index cc70d3aaecfdeb11c6ef0a0dc775af2af84adf7c..c381cd4edafa0f5c51c35d9f78a07a0acc7bc369 100644 (file)
@@ -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 =