]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/statbox.mm
Removed conflicting wxEntry prototype
[wxWidgets.git] / src / cocoa / statbox.mm
index 33320f707c4085b222bab44da1be034a94c90418..23dd3261d615fd009a3a8adeb87c91b931676e50 100644 (file)
@@ -43,3 +43,17 @@ wxStaticBox::~wxStaticBox()
     SetNSBox(NULL);
 }
 
+void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
+{
+    NSRect contentRect = [[GetNSBox() contentView] frame];
+    NSRect thisRect = [m_cocoaNSView frame];
+    *borderTop = thisRect.size.height - (contentRect.origin.y+contentRect.size.height);
+    *borderOther = thisRect.size.width - (contentRect.origin.x+contentRect.size.width);
+    int nextBorder = contentRect.origin.y;
+    if(nextBorder > *borderOther)
+        *borderOther = nextBorder;
+    nextBorder = contentRect.origin.x;
+    if(nextBorder > *borderOther)
+        *borderOther = nextBorder;
+}
+