]> git.saurik.com Git - wxWidgets.git/commitdiff
Use the wxStaticBox::GetBordersForSizer method to get border information
authorDavid Elliott <dfe@tgwbd.org>
Sun, 6 Apr 2003 00:51:44 +0000 (00:51 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sun, 6 Apr 2003 00:51:44 +0000 (00:51 +0000)
on wxCocoa.  Perhaps the other ports should do this?

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/sizer.cpp

index 5a9c11a99f4aa066d0f4e952563e9cfba6c26e29..21f311e59b65958a5fe4f494d48c0e133843c870 100644 (file)
@@ -1446,6 +1446,9 @@ static void GetStaticBoxBorders( wxStaticBox *box,
 {
     // this has to be done platform by platform as there is no way to
     // guess the thickness of a wxStaticBox border
 {
     // this has to be done platform by platform as there is no way to
     // guess the thickness of a wxStaticBox border
+#ifdef __WXCOCOA__
+    box->GetBordersForSizer(borderTop,borderOther);
+#else // __WXCOCOA__
 #ifdef __WXGTK__
     if ( box->GetLabel().IsEmpty() )
         *borderTop = 5;
 #ifdef __WXGTK__
     if ( box->GetLabel().IsEmpty() )
         *borderTop = 5;
@@ -1454,6 +1457,7 @@ static void GetStaticBoxBorders( wxStaticBox *box,
         *borderTop = box->GetCharHeight();
 
     *borderOther = 5;
         *borderTop = box->GetCharHeight();
 
     *borderOther = 5;
+#endif // __WXCOCOA__
 }
 
 void wxStaticBoxSizer::RecalcSizes()
 }
 
 void wxStaticBoxSizer::RecalcSizes()