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:
@@ -166,6 +166,10 @@ public:
|
||||
// Collapse the entire tree
|
||||
virtual void CollapseTree();
|
||||
|
||||
|
||||
// overridden base class methods
|
||||
virtual void SetFocus();
|
||||
|
||||
protected:
|
||||
virtual void ExpandRoot();
|
||||
virtual void ExpandDir(wxTreeItemId parentId);
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user