diff --git a/docs/changes.txt b/docs/changes.txt index 7cf5a48302..a9d343bf7c 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -421,6 +421,8 @@ Deprecated methods and their replacements instead of "char**". As the client data is typically untyped, you should simply remove the casts to "char**" which you probably have in your code if you use these functions. +- wxDataViewCtrl::StartEditor(item, n) taking column index is now deprecated, + use EditItem(item, GetColumn(n)), which takes the column itself, instead. Major new features in this release diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index df816643c9..194fd587ad 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -1170,7 +1170,7 @@ void MyFrame::OnAddTreeItem(wxCommandEvent& WXUNUSED(event)) if (ctrl->IsContainer(selected)) { wxDataViewItem newitem = ctrl->AppendItem( selected, "Item", 0 ); ctrl->Select(newitem); - ctrl->StartEditor(newitem, 0); + ctrl->EditItem(newitem, ctrl->GetColumn(0)); } }