set background style to wxBG_STYLE_COLOUR in SetBackgroundColour()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1041,6 +1041,9 @@ bool wxWindowBase::SetBackgroundColour( const wxColour &colour )
|
||||
return false;
|
||||
|
||||
m_hasBgCol = colour.Ok();
|
||||
if ( m_backgroundStyle != wxBG_STYLE_CUSTOM )
|
||||
m_backgroundStyle = m_hasBgCol ? wxBG_STYLE_COLOUR : wxBG_STYLE_SYSTEM;
|
||||
|
||||
m_inheritBgCol = m_hasBgCol;
|
||||
m_backgroundColour = colour;
|
||||
SetThemeEnabled( !m_hasBgCol && !m_foregroundColour.Ok() );
|
||||
|
Reference in New Issue
Block a user