Make room for the focus ring to be visible on Mac.
wxMac fix for resetting the focus to the textctrl when the combo ctrl gets it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -265,7 +265,11 @@ void wxGenericComboCtrl::OnPaintEvent( wxPaintEvent& WXUNUSED(event) )
|
||||
dc.DrawRectangle(rect2);
|
||||
}
|
||||
|
||||
#ifndef __WXMAC__ // see note in OnThemeChange
|
||||
wxColour winCol = GetBackgroundColour();
|
||||
#else
|
||||
wxColour winCol = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
|
||||
#endif
|
||||
dc.SetBrush(winCol);
|
||||
dc.SetPen(winCol);
|
||||
|
||||
@@ -274,7 +278,7 @@ void wxGenericComboCtrl::OnPaintEvent( wxPaintEvent& WXUNUSED(event) )
|
||||
|
||||
// clear main background
|
||||
dc.DrawRectangle(rect);
|
||||
|
||||
|
||||
if ( !m_btn )
|
||||
{
|
||||
// Standard button rendering
|
||||
|
Reference in New Issue
Block a user