TGFileDialog

Carlos Lacasta (Carlos.Lacasta@cern.ch)
Thu, 23 Apr 1998 19:12:31 +0200 (METDST)


Hi,

Is there a way of getting the directory name of a file selected with
TGFileDialog ?

If I do

TGFileInfo fi;
fi.fFileTypes = (char **)filetypes;
fi.fIniDir = szDir;
*fi.fIniDir = 0;
new TGFileDialog(fClient->GetRoot(), this, kFDOpen,&fi);
cout << fi.fFilename << endl
<< fi.fIniDir << endl;

I get the file base name in fi.fFilename and fi.fIniDir is still empty.
I guess that fIniDir defines the initial directory, although I could not find
it in the source file available in the WWW.

Thanks in advance,

Carlos

___________________________________________________________________
Carlos Lacasta
^^^^^^^^^^^^^^^
Division PPE
Bat. 161 1-014
CERN
CH 1211 Meyrin/Geneve
Switzerland/Suisse
Tel.: +41 22 7673028
Fax.: +41 22 7677150
WWW : http://wwwcn.cern.ch/~lacasta
___________________________________________________________________