From 497cb543c0f96c4b18732729bf14c65fa97afa68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 30 Oct 2006 10:19:21 +0000 Subject: [PATCH] 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 --- src/univ/themes/mono.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/univ/themes/mono.cpp b/src/univ/themes/mono.cpp index 58fa6ac551..221a7162ff 100644 --- a/src/univ/themes/mono.cpp +++ b/src/univ/themes/mono.cpp @@ -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, -- 2.45.2