+ pointXY = (x, y)
+ pointWH = (width, height)
+ if self.hide_grid == False:
+ pen = wx.Pen(MakeColor(self.GetColor(COLOR_GRID_LINES)), 1, wx.SOLID)
+ else:
+ pen = wx.Pen(MakeColor(self.GetColor(COLOR_BACKGROUND)), 1, wx.SOLID)
+ DC.SetPen(pen)
+ DC.DrawRectanglePointSize( pointXY, pointWH)
+
+ old_pen = DC.GetPen()
+
+ pen = wx.Pen(MakeColor(self.colors[COLOR_3D_LIGHT]), 1, wx.SOLID)
+ DC.SetPen(pen)
+ # draw the horizontal hilight
+ startPoint = wx.Point(x + 1 , y + 1)
+ endPoint = wx.Point(x + width - 1, y + 1)
+ DC.DrawLinePoint(startPoint, endPoint )
+
+ # draw the vertical hilight
+ startPoint = wx.Point(x + 1 , y + 1)
+ endPoint = wx.Point(x + 1, y + height - 2)
+ DC.DrawLinePoint(startPoint, endPoint )
+
+ pen = wx.Pen(MakeColor(self.colors[COLOR_3D_DARK]), 1, wx.SOLID)
+ DC.SetPen(pen)
+
+ # draw the horizontal lowlight
+ startPoint = wx.Point(x + 1, y + height - 2)
+ endPoint = wx.Point(x + width - 1, y + height - 2)
+ DC.DrawLinePoint(startPoint, endPoint )
+
+ # draw the vertical lowlight
+ startPoint = wx.Point(x + width - 2 , y + 2)
+ endPoint = wx.Point(x + width - 2, y + height - 2)
+ DC.DrawLinePoint(startPoint, endPoint )
+
+ pen = wx.Pen(MakeColor(self.colors[COLOR_FONT]), 1, wx.SOLID)
+
+ DC.SetPen(pen)
+
+ point = (x+diffx, y+diffy)
+ DC.DrawTextPoint(day, point)