// 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();
// alignment horizontal and vertical (left, center, right)
int m_WidthFloat, m_WidthFloatUnits;
// width float is used in adjustWidth
- bool m_UseBkColour;
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_UseBkColour = false;
+ m_BkColour = wxNullColour;
m_Border = 0;
m_MinHeight = 0;
m_MinHeightAlign = wxHTML_ALIGN_TOP;
int xlocal = x + m_PosX;
int ylocal = y + m_PosY;
- if (m_UseBkColour)
+ if (m_BkColour.IsOk())
{
wxBrush myb = wxBrush(m_BkColour, wxBRUSHSTYLE_SOLID);
wxColour wxHtmlContainerCell::GetBackgroundColour()
{
- if (m_UseBkColour)
- return m_BkColour;
- else
- return wxNullColour;
+ return m_BkColour;
}