Don't use m_UseBkColour flag which remained always set once
SetBackgroundColour() had been called, but just rely on m_BkColour itself
being valid to determine whether we should use it. This allows to reset the
background colour after setting it.
Closes #15287.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74306
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// sets minimal height of this container.
void SetMinHeight(int h, int align = wxHTML_ALIGN_TOP) {m_MinHeight = h; m_MinHeightAlign = align; m_LastLayout = -1;}
// sets minimal height of this container.
void SetMinHeight(int h, int align = wxHTML_ALIGN_TOP) {m_MinHeight = h; m_MinHeightAlign = align; m_LastLayout = -1;}
- void SetBackgroundColour(const wxColour& clr) {m_UseBkColour = true; m_BkColour = clr;}
+ void SetBackgroundColour(const wxColour& clr) {m_BkColour = clr;}
// returns background colour (of wxNullColour if none set), so that widgets can
// adapt to it:
wxColour GetBackgroundColour();
// returns background colour (of wxNullColour if none set), so that widgets can
// adapt to it:
wxColour GetBackgroundColour();
// alignment horizontal and vertical (left, center, right)
int m_WidthFloat, m_WidthFloatUnits;
// width float is used in adjustWidth
// alignment horizontal and vertical (left, center, right)
int m_WidthFloat, m_WidthFloatUnits;
// width float is used in adjustWidth
wxColour m_BkColour;
// background color of this container
int m_Border;
wxColour m_BkColour;
// background color of this container
int m_Border;
m_AlignVer = wxHTML_ALIGN_BOTTOM;
m_IndentLeft = m_IndentRight = m_IndentTop = m_IndentBottom = 0;
m_WidthFloat = 100; m_WidthFloatUnits = wxHTML_UNITS_PERCENT;
m_AlignVer = wxHTML_ALIGN_BOTTOM;
m_IndentLeft = m_IndentRight = m_IndentTop = m_IndentBottom = 0;
m_WidthFloat = 100; m_WidthFloatUnits = wxHTML_UNITS_PERCENT;
+ m_BkColour = wxNullColour;
m_Border = 0;
m_MinHeight = 0;
m_MinHeightAlign = wxHTML_ALIGN_TOP;
m_Border = 0;
m_MinHeight = 0;
m_MinHeightAlign = wxHTML_ALIGN_TOP;
int xlocal = x + m_PosX;
int ylocal = y + m_PosY;
int xlocal = x + m_PosX;
int ylocal = y + m_PosY;
{
wxBrush myb = wxBrush(m_BkColour, wxBRUSHSTYLE_SOLID);
{
wxBrush myb = wxBrush(m_BkColour, wxBRUSHSTYLE_SOLID);
wxColour wxHtmlContainerCell::GetBackgroundColour()
{
wxColour wxHtmlContainerCell::GetBackgroundColour()
{
- if (m_UseBkColour)
- return m_BkColour;
- else
- return wxNullColour;