render scrollbar's thumb as stippled bar to distinguish it from controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1039,7 +1039,18 @@ void wxMonoRenderer::DrawScrollbarThumb(wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int WXUNUSED(flags))
|
||||
{
|
||||
DrawSolidRect(dc, wxMONO_FG_COL, rect);
|
||||
DrawSolidRect(dc, wxMONO_BG_COL, rect);
|
||||
|
||||
// manually draw stipple pattern (wxDFB doesn't implement the wxSTIPPLE
|
||||
// brush style):
|
||||
dc.SetPen(m_penFg);
|
||||
for ( wxCoord y = rect.GetTop(); y <= rect.GetBottom(); y++ )
|
||||
{
|
||||
for ( wxCoord x = rect.GetLeft() + (y % 2); x <= rect.GetRight(); x+=2 )
|
||||
{
|
||||
dc.DrawPoint(x, y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void wxMonoRenderer::DrawScrollbarShaft(wxDC& dc,
|
||||
|
Reference in New Issue
Block a user