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:
Robin Dunn
2006-11-28 23:11:21 +00:00
parent e26a41ba70
commit 2dfa37d69e
3 changed files with 61 additions and 17 deletions

View File

@@ -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