[Gtk-sharp-list] How to select a folder using

underdog10@netcourrier.com underdog10@netcourrier.com
Mon, 9 Aug 2004 17:57:51 CEST


I do it that way...

FileSelection fDlg =3D new FileSelection(=22Choose a ISO file.=22);
fDlg.HideFileopButtons();
fDlg.Complete(=22*.iso=22);
int nRc =3D fDlg.Run();
fDlg.Hide();
if(nRc =3D=3D (int)ResponseType.Ok) =7B
	FileSelection DirDlg =3D new FileSelection(=22Choose a Destination Direct=
ory.=22);						DirDlg.SelectionEntry.Text =3D System.IO.Path.GetDirectoryN=
ame(fDlg.Filename);
	int nRdir =3D DirDlg.Run();
    	DirDlg.Hide();
	if(nRdir =3D=3D (int)ResponseType.Ok) =7B
		// do stuf
	=7D
	DirDlg =3D null;
=7D
fDlg =3D null;

KaYa

----Message d'origine----
>De: Ra=FAl Moratalla <raul.moratalla=40ono.com>
>A: gtk-sharp-list=40lists.ximian.com
>Sujet: =5BGtk-sharp-list=5D How to select a folder using
>Date: Mon, 09 Aug 2004 12:10:06 +0000
>
>Hi, I use a Gtk.FileSelection for selecting a folder, but I don't know =

>how to do it in the correct way, as I see the DirList and FileList. =

>Should be possible to show the FileSelection dialog with the DirList =

>only? How could I get the selected folder?
>
>Regards,
>
>Ra=FAl
>=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
>Gtk-sharp-list maillist  -  Gtk-sharp-list=40lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>

-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Tool=
bar...
Web/Wap : www.netcourrier.com
T=E9l=E9phone/Fax : 08 92 69 00 21 (0,34 =80 TTC/min)
Minitel: 3615 NETCOURRIER (0,16 =80 TTC/min)