+ dc.DrawRectangle(rect);
+ }
+ else
+ {
+ // VZ: my experiments with 3d borders...
+#if 0
+ dc.SetPen(wxPen(m_gridLineColour, 3, wxSOLID));
+ dc.SetBrush(*wxTRANSPARENT_BRUSH);
+
+ dc.DrawRectangle(rect);
+#else //1
+ // FIXME we should properly set colours for arbitrary bg
+ wxCoord x1 = rect.x,
+ y1 = rect.y,
+ x2 = rect.x + rect.width,
+ y2 = rect.y + rect.height;
+
+ dc.SetPen(*wxWHITE_PEN);
+ dc.DrawLine(x1, y1, x2 - 1, y1);
+ dc.DrawLine(x1, y1, x1, y2 - 1);
+
+ dc.SetPen(*wxLIGHT_GREY_PEN);
+ dc.DrawLine(x1 + 1, y2 - 1, x2 - 1, y2 - 1);
+ dc.DrawLine(x2 - 1, y1 + 1, x2 - 1, y2 - 1);
+
+ dc.SetPen(*wxBLACK_PEN);
+ dc.DrawLine(x1, y2, x2, y2);
+ dc.DrawLine(x2, y1, x2, y2);
+#endif // 0/1
+ }