void wxControlRenderer::DrawLabel(const wxBitmap& bitmap,
wxCoord marginX, wxCoord marginY)
{
+ m_dc.SetBackgroundMode(wxTRANSPARENT);
m_dc.SetFont(m_window->GetFont());
m_dc.SetTextForeground(m_window->GetForegroundColour());
if ( bitmap.Ok() )
{
rectLabel.Inflate(-marginX, -marginY);
+
+ // I don't know why this is necessary. RR.
+ rectLabel.x ++;
+ rectLabel.y ++;
}
wxControl *ctrl = wxStaticCast(m_window, wxControl);