this is my first entry in this forum, but I've been finding a lot of solutions and useful suggestions in it durring the previous months. Therefore I would like to thank everbody for making my work with wxwidgets much easier.
Nevertheless I've been having a problem regarding wxDataViewCtrl lately.
Let's take a look into the dataview sample. If you left click for example on the element "German Requiem" in "MyMusicTreeModel" and press F2 then you can rename this element. If you then process a left-click the editing will be terminated and the other element will be highlighted.
If you do the same with a right-click you would expect the same behaviour plus a context menu. Unfortunately the editing is not being terminated, but still the context menu appears, which I think is an unnatural behavior.
Since in my application the context menu also has an entry for renaming I even got worse scenarios where several elements where open for editing at the same time.
Everything that I need, is to terminate the editing when a EVT_DATAVIEW_ITEM_CONTEXT_MENU is fired.
This could easily be done with a simple function
Code: Select all
void wxDataViewCtrl::FinishEditing(){
m_clientArea->FinishEditing();
}
I am really looking forward to your replies and thank you in advance.
ps: I'm using wxWidgets 3.0.4 on a windows 7 machine.