]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/statbox.cpp
Made wxNO_DEFAULT set the "no" button as the default, according to the docs
[wxWidgets.git] / src / gtk1 / statbox.cpp
index 84fd9673ffdb062ef414a56c3d7b72173f728d18..d39006cda7c1591074c0fbf1d62c72cac8aa3079 100644 (file)
@@ -41,7 +41,12 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label
 {
     m_needParent = TRUE;
 
-    PreCreation( parent, id, pos, size, style, name );
+    if (!PreCreation( parent, pos, size ) ||
+        !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
+    {
+        wxFAIL_MSG( _T("wxStaticBox creation failed") );
+       return FALSE;
+    }
 
     m_isStaticBox = TRUE;