Added an example of overriding method HasValue in wxDataView to show how some items may not have values for some columns.

This commit is contained in:
Jorge Moraleda
2020-04-13 23:43:39 -07:00
parent a1f90ae0de
commit 8b9cf87653
3 changed files with 77 additions and 0 deletions

View File

@@ -266,6 +266,16 @@ public:
virtual bool IsEnabledByRow(unsigned int row, unsigned int col) const wxOVERRIDE;
};
// ----------------------------------------------------------------------------
// MyListStoreHasValueModel
// ----------------------------------------------------------------------------
class MyListStoreHasValueModel : public MyListStoreDerivedModel
{
public:
virtual bool HasValue(const wxDataViewItem &item, unsigned int col) const wxOVERRIDE;
};
// ----------------------------------------------------------------------------
// MyIndexListModel
// ----------------------------------------------------------------------------