forward SetFocus() to the directory tree (replaces patch 1831210)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-11-17 15:12:13 +00:00
parent 2b147f2e19
commit 905e090500
2 changed files with 11 additions and 0 deletions

View File

@@ -664,6 +664,13 @@ void wxGenericDirCtrl::SetupSections()
AddSection(paths[n], names[n], icons[n]);
}
void wxGenericDirCtrl::SetFocus()
{
// we don't need focus ourselves, give it to the tree so that the user
// could navigate it
m_treeCtrl->SetFocus();
}
void wxGenericDirCtrl::OnBeginEditItem(wxTreeEvent &event)
{
// don't rename the main entry "Sections"