git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67256
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// should the focus be reset to the textctrl in idle time?
bool m_resetFocus;
+ // is the text-area background colour overridden?
+ bool m_hasTcBgCol;
+
private:
void Init();
m_timeCanAcceptClick = 0;
m_resetFocus = false;
+ m_hasTcBgCol = false;
}
bool wxComboCtrlBase::Create(wxWindow *parent,
vattrs.colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
#endif
- if ( !m_hasBgCol )
+ if ( !m_hasTcBgCol )
m_tcBgCol = vattrs.colBg;
#ifndef __WXMAC__
if ( m_text )
m_text->SetBackgroundColour(colour);
m_tcBgCol = colour;
- m_hasBgCol = true;
+ m_hasTcBgCol = true;
return true;
}
{
bgCol = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
}
- else if ( m_hasBgCol )
+ else if ( m_hasTcBgCol )
{
// Honour the custom background colour
- bgCol = GetBackgroundColour();
+ bgCol = m_tcBgCol;
}
else
{