example for DataView with wxDV_VARIABLE_LINE_HEIGHT flag

This commit is contained in:
jensgoe
2018-12-21 17:56:01 +01:00
committed by Vadim Zeitlin
parent 8c64209df1
commit 14ca16ffaf
3 changed files with 116 additions and 1 deletions

View File

@@ -312,6 +312,19 @@ unsigned int MyMusicTreeModel::GetChildren( const wxDataViewItem &parent,
}
// ----------------------------------------------------------------------------
// MyLongMusicTreeModel
// ----------------------------------------------------------------------------
MyLongMusicTreeModel::MyLongMusicTreeModel() : MyMusicTreeModel()
{
for (int i = 0; i < 50; i++)
{
AddToClassical("The Four Seasons", "Antonio Vivaldi", 1721);
AddToClassical("La costanza trionfante degl'amori e de gl'odii", "Antonio Vivaldi", 1716);
}
}
// ----------------------------------------------------------------------------
// MyListModel