Kaydet (Commit) 25241b23 authored tarafından Ocke Janssen's avatar Ocke Janssen

#98916# overload getFocus

üst 24973b61
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: dbtreeview.cxx,v $ * $RCSfile: dbtreeview.cxx,v $
* *
* $Revision: 1.16 $ * $Revision: 1.17 $
* *
* last change: $Author: oj $ $Date: 2001-09-25 13:24:38 $ * last change: $Author: oj $ $Date: 2002-05-02 07:14:29 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -221,15 +221,11 @@ void DBTreeView::setSelectHdl(const Link& _rHdl) ...@@ -221,15 +221,11 @@ void DBTreeView::setSelectHdl(const Link& _rHdl)
m_pTreeListBox->SetSelectHdl(_rHdl); m_pTreeListBox->SetSelectHdl(_rHdl);
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
long DBTreeView::PreNotify( NotifyEvent& rNEvt ) void DBTreeView::GetFocus()
{ {
long nDone = 0L; Window::GetFocus();
if(rNEvt.GetType() == EVENT_GETFOCUS && m_pTreeListBox && !m_pTreeListBox->HasChildPathFocus()) if ( m_pTreeListBox )//&& !m_pTreeListBox->HasChildPathFocus())
{
m_pTreeListBox->GrabFocus(); m_pTreeListBox->GrabFocus();
nDone = 1L;
}
return nDone ? nDone : Window::PreNotify(rNEvt);
} }
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: dbtreeview.hxx,v $ * $RCSfile: dbtreeview.hxx,v $
* *
* $Revision: 1.9 $ * $Revision: 1.10 $
* *
* last change: $Author: oj $ $Date: 2001-09-25 13:24:38 $ * last change: $Author: oj $ $Date: 2002-05-02 07:14:29 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -121,7 +121,7 @@ namespace dbaui ...@@ -121,7 +121,7 @@ namespace dbaui
DBTreeListBox* getListBox() const; DBTreeListBox* getListBox() const;
virtual long PreNotify( NotifyEvent& rNEvt ); virtual void GetFocus();
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment