Forward SetFont, SetBackgroundColour and SetForegroundCOlour to the
generic listctrl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -309,11 +309,17 @@ class WXDLLEXPORT wxListCtrl: public wxControl
|
|||||||
wxListCtrlCompare GetCompareFunc() { return m_compareFunc; };
|
wxListCtrlCompare GetCompareFunc() { return m_compareFunc; };
|
||||||
long GetCompareFuncData() { return m_compareFuncData; };
|
long GetCompareFuncData() { return m_compareFuncData; };
|
||||||
|
|
||||||
|
|
||||||
|
// public overrides needed for pimpl approach
|
||||||
|
virtual bool SetFont(const wxFont& font);
|
||||||
|
virtual bool SetForegroundColour(const wxColour& colour);
|
||||||
|
virtual bool SetBackgroundColour(const wxColour& colour);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// overrides needed for pimpl approach
|
// protected overrides needed for pimpl approach
|
||||||
virtual void DoSetSize(int x, int y,
|
virtual void DoSetSize(int x, int y,
|
||||||
int width, int height,
|
int width, int height,
|
||||||
int sizeFlags = wxSIZE_AUTO);
|
int sizeFlags = wxSIZE_AUTO);
|
||||||
|
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
void Init();
|
void Init();
|
||||||
|
@@ -404,6 +404,33 @@ void wxListCtrl::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
|||||||
m_genericImpl->SetSize(x, y, width, height, sizeFlags);
|
m_genericImpl->SetSize(x, y, width, height, sizeFlags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxListCtrl::SetFont(const wxFont& font)
|
||||||
|
{
|
||||||
|
bool rv;
|
||||||
|
rv = wxControl::SetFont(font);
|
||||||
|
if (m_genericImpl)
|
||||||
|
rv = m_genericImpl->SetFont(font);
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxListCtrl::SetForegroundColour(const wxColour& colour)
|
||||||
|
{
|
||||||
|
bool rv;
|
||||||
|
rv = wxControl::SetForegroundColour(colour);
|
||||||
|
if (m_genericImpl)
|
||||||
|
rv = m_genericImpl->SetForegroundColour(colour);
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxListCtrl::SetBackgroundColour(const wxColour& colour)
|
||||||
|
{
|
||||||
|
bool rv;
|
||||||
|
rv = wxControl::SetBackgroundColour(colour);
|
||||||
|
if (m_genericImpl)
|
||||||
|
rv = m_genericImpl->SetBackgroundColour(colour);
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// accessors
|
// accessors
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user