TGFileDialog

From: Carlos Lacasta (Carlos.Lacasta@cern.ch)
Date: Thu Apr 23 1998 - 19:12:31 MEST


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
 ___________________________________________________________________



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:32 MET