]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
signed/unsigned comparison warning (and probably even error) fixed
[wxWidgets.git] / src / os2 / statbox.cpp
index 792a6fd3042297cc472d9e3dc57816703eaebaaa..998c4d9dd3bd49c86e106dd669a72c6adc9f2e92 100644 (file)
@@ -34,16 +34,16 @@ bool wxStaticBox::Create(
 , const wxString&                   rsName
 )
 {
-    if(!OS2CreateControl( pParent
-                         ,vId
-                         ,rPos
-                         ,rSize
-                         ,lStyle
+    if(!CreateControl( pParent
+                      ,vId
+                      ,rPos
+                      ,rSize
+                      ,lStyle
 #if wxUSE_VALIDATORS
-                         ,wxDefaultValidator
+                      ,wxDefaultValidator
 #endif
-                         ,rsName
-                        ))
+                      ,rsName
+                     ))
     {
         return FALSE;
     }
@@ -61,6 +61,11 @@ bool wxStaticBox::Create(
         return FALSE;
     }
 
+    //
+    // To be transparent we should have the same colour as the parent as well
+    //
+    SetBackgroundColour(GetParent()->GetBackgroundColour());
+
     wxColour                        vColour;
 
     vColour.Set(wxString("BLACK"));
@@ -79,7 +84,7 @@ bool wxStaticBox::Create(
                       ,sizeof(LONG)
                       ,(PVOID)&lColor
                      );
-    SetFont(pParent->GetFont());
+    SetFont(*wxSMALL_FONT);
     SetSize( rPos.x
             ,rPos.y
             ,rSize.x