Only draw focus rect on MSW in wxCollapsibleHeaderCtrl.
It is a native look on MSW but looks out of place on other plalforms.
This commit is contained in:
@@ -185,8 +185,10 @@ void wxGenericCollapsibleHeaderCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
dc.DrawLabel(text, textRect, wxALIGN_CENTRE_VERTICAL, indexAccel);
|
dc.DrawLabel(text, textRect, wxALIGN_CENTRE_VERTICAL, indexAccel);
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
if ( HasFocus() )
|
if ( HasFocus() )
|
||||||
wxRendererNative::Get().DrawFocusRect(this, dc, textRect.Inflate(1), flags);
|
wxRendererNative::Get().DrawFocusRect(this, dc, textRect.Inflate(1), flags);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user