Re: TGFileDialog

Fons Rademakers (rdm@pcsalo.cern.ch)
Tue, 18 Aug 1998 23:45:57 +0200 (METDST)


Hi Alex,

you have to use gSystem->WorkingDirectory() to get the directory
of the selected file. Changing the directory in the dialog changes
the working directory. So, if you want to preserve the directory
before calling the file dialog save it using WorkingDirectory() and
set it afterwards back using TSystem::ChangeDirectory().

Cheers, Fons.

>
>
> Hi Rooters!
>
> There is some way to get the directory of the selected file into
> TGFileDialog?
> Looking at the source the TGFileInfo->fIniDir isn't used, maybe this
> class is unfinished?
>
> bye,
> Alex
>

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland          Phone: +41 22 7679248
E-Mail: Fons.Rademakers@cern.ch              Fax:   +41 22 7677910