+// ----------------------------------------------------------------------------
+// status bar
+// ----------------------------------------------------------------------------
+
+#if wxUSE_STATUSBAR
+
+wxSize wxStdRenderer::GetStatusBarBorders(wxCoord *borderBetweenFields) const
+{
+ if ( borderBetweenFields )
+ *borderBetweenFields = 2;
+
+ return wxSize(2, 2);
+}
+
+void wxStdRenderer::DrawStatusField(wxDC& dc,
+ const wxRect& rect,
+ const wxString& label,
+ int flags,
+ int style)
+{
+ wxRect rectIn;
+
+ if ( style == wxSB_RAISED )
+ DrawBorder(dc, wxBORDER_RAISED, rect, flags, &rectIn);
+ else if ( style != wxSB_FLAT )
+ DrawBorder(dc, wxBORDER_STATIC, rect, flags, &rectIn);
+
+ rectIn.Deflate(GetStatusBarBorders(NULL));
+
+ wxDCClipper clipper(dc, rectIn);
+ DrawLabel(dc, label, rectIn, flags, wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
+}
+
+#endif // wxUSE_STATUSBAR