draw solid focus rectangle in mono theme and don't do it at all for selected items (this required adding flags parameter to DrawFocusRect())
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -184,7 +184,8 @@ void wxStdRenderer::DrawButtonSurface(wxDC& dc,
|
||||
// text
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxStdRenderer::DrawFocusRect(wxDC& dc, const wxRect& rect)
|
||||
void
|
||||
wxStdRenderer::DrawFocusRect(wxDC& dc, const wxRect& rect, int WXUNUSED(flags))
|
||||
{
|
||||
// draw the pixels manually because the "dots" in wxPen with wxDOT style
|
||||
// may be short traits and not really dots
|
||||
@@ -615,7 +616,7 @@ void wxStdRenderer::DrawItem(wxDC& dc,
|
||||
|
||||
if ( flags & wxCONTROL_FOCUSED )
|
||||
{
|
||||
DrawFocusRect(dc, rect);
|
||||
DrawFocusRect(dc, rect, flags);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user