Virtualize StartEditor and add implementations for the ports that can do it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1160,8 +1160,11 @@ void MyFrame::OnAddTreeItem(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
wxDataViewTreeCtrl* ctrl = (wxDataViewTreeCtrl*) m_ctrl[3];
|
||||
wxDataViewItem selected = ctrl->GetSelection();
|
||||
if (ctrl->IsContainer(selected))
|
||||
ctrl->AppendItem( selected, "Item", 0 );
|
||||
if (ctrl->IsContainer(selected)) {
|
||||
wxDataViewItem newitem = ctrl->AppendItem( selected, "Item", 0 );
|
||||
ctrl->Select(newitem);
|
||||
ctrl->StartEditor(newitem, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void MyFrame::OnAddTreeContainerItem(wxCommandEvent& WXUNUSED(event))
|
||||
|
Reference in New Issue
Block a user