wxGridCellAttr::Clone() added to allow the demo of custom grid cell attr provider to work

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-02-28 19:08:01 +00:00
parent 3f5513f5bb
commit a68c1246db
4 changed files with 116 additions and 4 deletions

View File

@@ -158,6 +158,22 @@ private:
BigGridTable* m_table;
};
// ----------------------------------------------------------------------------
// an example of custom attr provider: this one makes all odd rows appear grey
// ----------------------------------------------------------------------------
class MyGridCellAttrProvider : public wxGridCellAttrProvider
{
public:
MyGridCellAttrProvider();
virtual ~MyGridCellAttrProvider();
virtual wxGridCellAttr *GetAttr(int row, int col) const;
private:
wxGridCellAttr *m_attrForOddRows;
};
// ----------------------------------------------------------------------------
// another, more realistic, grid example: shows typed columns and more
// ----------------------------------------------------------------------------