#endif
#ifndef WX_PRECOMP
+ #include "wx/settings.h"
+ #include "wx/brush.h"
+ #include "wx/dc.h"
+ #include "wx/statusbr.h"
+ #include "wx/toplevel.h"
#endif //WX_PRECOMP
#include "wx/univ/stdrend.h"
DrawShadedRect(dc, rect, m_penHighlight, m_penDarkGrey);
}
-void wxStdRenderer::DrawFrameBorder(wxDC& dc, wxRect *rect)
+void wxStdRenderer::DrawBoxBorder(wxDC& dc, wxRect *rect)
{
DrawShadedRect(dc, rect, m_penDarkGrey, m_penHighlight);
DrawShadedRect(dc, rect, m_penHighlight, m_penDarkGrey);
}
+void wxStdRenderer::DrawStaticBorder(wxDC& dc, wxRect *rect)
+{
+ DrawShadedRect(dc, rect, m_penDarkGrey, m_penHighlight);
+}
+
+void wxStdRenderer::DrawExtraBorder(wxDC& dc, wxRect *rect)
+{
+ DrawRect(dc, rect, m_penLightGrey);
+}
+
void wxStdRenderer::DrawBorder(wxDC& dc,
wxBorder border,
const wxRect& rectTotal,
case wxBORDER_DOUBLE:
DrawAntiSunkenBorder(dc, &rect);
- DrawRect(dc, &rect, m_penLightGrey);
+ DrawExtraBorder(dc, &rect);
break;
case wxBORDER_STATIC:
- DrawShadedRect(dc, &rect, m_penDarkGrey, m_penHighlight);
+ DrawStaticBorder(dc, &rect);
break;
case wxBORDER_RAISED:
}
else // no label
{
- DrawFrameBorder(dc, &rectFrame);
+ DrawBoxBorder(dc, &rectFrame);
}
}
wxRect r(rect);
- DrawShadedRect(dc, &r, m_penLightGrey, m_penBlack);
- DrawShadedRect(dc, &r, m_penHighlight, m_penDarkGrey);
- DrawShadedRect(dc, &r, m_penLightGrey, m_penLightGrey);
+ DrawAntiSunkenBorder(dc, &r);
+ DrawExtraBorder(dc, &r);
if ( flags & wxTOPLEVEL_RESIZEABLE )
- DrawShadedRect(dc, &r, m_penLightGrey, m_penLightGrey);
+ DrawExtraBorder(dc, &r);
}
void wxStdRenderer::DrawFrameBackground(wxDC& dc, const wxRect& rect, int flags)
{
DrawSunkenBorder(dc, &rectBtn);
- rectBtn.x++;
- rectBtn.y++;
+ rectBtn.Offset(1, 1);
}
else
{
{
return wxSize(16, 16);
}
-