On Tuesday 20 March 2001 00:39, Xavier Bertou wrote: >Hi rooters, >The field is not used in the code. If its purpose is to tell in which >directory the popup window should start, then a simple constructor >TGFileInfo() {fIniDir=NULL;}; >added in gui/inc/TGFileDialog.h, and in gui/src/TGFileDialog.cxx > if (fFileInfo->fIniDir==NULL) > fFc->ChangeDirectory("."); > else fFc->ChangeDirectory(fFileInfo->fIniDir); >allows to take it into account. It's not perfect (in case directory >doesn't exist, could add a stat(fFileInfo->fIniDir) to check it and take >"." else), but it works well, and it's quite usefull. >Cheers, Hi Xavier, hi rooters, I also would highly appreciate such a feature. I sent an enhancement request as a feedback to root several months ago but didn't get any response till now. So I solved the problem by embedding the original TGFileInfo in my own class which execs a gSystem->ChangeDirectory() to a path specified in fIniDir before calling TGFileInfo. A poor workaround only - I agree. Cheers, Rudi -- __ __ __ / Rudi Lutter / ____ / /_ __/ /_/ /____ ____ /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/ / __/ / / // / __/ __/ -_) __/ / Email: Rudi.Lutter@Physik.Uni-Muenchen.DE / /_/ /_/\_,_/\__/\__/\__/_/ / WWW: www.bl.physik.tu-muenchen.de/~rudi / / / -----------------------------/ Tel: (+49) 89 289 1 4287 / / Fax: (+49) 89 289 1 4280 / /--------------------------------------------/ / Beschleunigerlabor der LMU und TU Muenchen / / Am Coulombwall 6, D-85748 GARCHING, Germany/ *--------------------------------------------*
This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:21 MEST