// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "statbox.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
sk.Restore();
}
+
+void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
+{
+ Dimension shadow, border;
+
+ XtVaGetValues( (Widget) GetMainWidget(),
+ XmNshadowThickness, &shadow,
+ XmNborderWidth, &border,
+ NULL);
+
+ *borderOther = shadow + border;
+
+ if( GetLabelWidget() )
+ {
+ XtWidgetGeometry preferred;
+ XtQueryGeometry( (Widget) GetLabelWidget(), NULL, &preferred );
+
+ *borderTop = preferred.height;
+ }
+ else
+ {
+ *borderTop = shadow;
+ }
+}