Test custom editor in the dataview sample

Show how to create and use a custom editor in the custom renderer.
This commit is contained in:
Vadim Zeitlin
2015-11-27 15:43:21 +01:00
parent 29024e39ca
commit 7e37c6763f
3 changed files with 52 additions and 8 deletions

View File

@@ -8,6 +8,10 @@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/hashmap.h"
WX_DECLARE_HASH_MAP(unsigned, wxString, wxIntegerHash, wxIntegerEqual,
IntToStringMap);
// ----------------------------------------------------------------------------
// MyMusicTreeModelNode: a node inside MyMusicTreeModel
@@ -235,6 +239,7 @@ public:
private:
wxArrayString m_textColValues;
wxArrayString m_iconColValues;
IntToStringMap m_customColValues;
wxIcon m_icon[2];
};