]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
Stripped out miscellaneous Motif/Xt-specific code
[wxWidgets.git] / src / os2 / statbox.cpp
index 792a6fd3042297cc472d9e3dc57816703eaebaaa..61f5db74d6cf964bb3d8488d21d466b94a39f386 100644 (file)
@@ -79,12 +79,18 @@ bool wxStaticBox::Create(
                       ,sizeof(LONG)
                       ,(PVOID)&lColor
                      );
-    SetFont(pParent->GetFont());
+    wxFont*                          pTextFont = new wxFont( 10
+                                                            ,wxMODERN
+                                                            ,wxNORMAL
+                                                            ,wxNORMAL
+                                                           );
+    SetFont(*pTextFont);
     SetSize( rPos.x
             ,rPos.y
             ,rSize.x
             ,rSize.y
            );
+    delete pTextFont;
     return TRUE;
 } // end of wxStaticBox::Create