int image_h;
// assuming every image (normal and selected ) has the same size !
- if (theTree->m_imageListNormal)
+ if ((m_image!=-1) && theTree->m_imageListNormal)
theTree->m_imageListNormal->GetSize(m_image, image_w, image_h);
+
if ((image_w != -1) && (point.x <= m_x + image_w + 1))
flags|=wxTREE_HITTEST_ONITEMICON;
else
#endif
SetBackgroundColour( *wxWHITE );
- m_dottedPen = wxPen( *wxBLACK, 0, 0 );
+ m_dottedPen = wxPen( "GREY", 0, wxDOT );
return TRUE;
}
dc.SetPen( *wxGREY_PEN );
dc.SetBrush( *wxWHITE_BRUSH );
dc.DrawRectangle( horizX+(m_indent-5), y-4, 11, 9 );
+
dc.SetPen( *wxBLACK_PEN );
dc.DrawLine( horizX+(m_indent-2), y, horizX+(m_indent+3), y );
-
if (!item->IsExpanded())
- {
dc.DrawLine( horizX+m_indent, y-2, horizX+m_indent, y+3 );
- }
+
+ dc.SetPen( m_dottedPen );
}
if (item->HasHilight())
PaintItem(item, dc);
- dc.SetPen( *wxBLACK_PEN );
+ dc.SetPen( m_dottedPen );
dc.SetTextForeground( *wxBLACK );
dc.SetBrush( *wxWHITE_BRUSH );
}
PaintItem(item, dc);
- dc.SetPen( *wxBLACK_PEN );
+ dc.SetPen( m_dottedPen );
}
}