Re: [ROOT] TGListTree::FindItemByPathname ?

From: Valeriy Onuchin (Valeri.Onoutchine@cern.ch)
Date: Tue Aug 05 2003 - 17:12:50 MEST


 Hi Christian

> Dear Rooters
> 
> Whenever I try to use TGListTree::FindItemByPathname(), the
> return value is null. Probably, I am doing something wrong, but
> could it be that the following code fragment may be wrong?
> TGListTreeItem *TGListTree::FindItemByPathname(const char *path)
> {
>    while (1) {
>       item = FindChildByName(item, dirname);
>       if (!item || !s) return item;    <=== should this be item instead 

Should be as following:
      if (!s) return item;

I made a fix and added SearchDialog to TGListTree class which uses
this method. Can be activated by F7 or Cntrl-F keys.
Mods will appear in CVS asap.

> 
> Could this also be the reason, why the fFSComboBox of the root
> TBrowser does not behave as it should?
> Whenever I select one of my directories in fFSComboBox, the "root"
> directory is highlighted in fLT but not the selected directory.

We will improve  fFSComboBox in TBrowser to have the same
functionality as in WindowsExplorer.

Thanks. Regards. Valeriy



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET