lordphoenix wrote:
Le Sat, 27 Jan 2007 18:09:44 +0200,
Petteri Kautonen <[EMAIL PROTECTED]> a écrit :

  
PS. There is a documentation covering gtk# at
http://docs.gotmono.net/.
    
Is it same documentation as in monodoc ?
  
No. The dialog creation part is almost the same. There is nothing about filters or selecting multiple files. This example is in monodoc:

public class MainWindow: Gtk.Window {
     
     protected virtual void OnBtnLoadFileClicked(object sender, System.EventArgs e)
     {
          Gtk.FileChooserDialog fc=
          new Gtk.FileChooserDialog("Choose the file to open",
                                      this,
                                      FileChooserAction.Open,
                                      "Cancel",ResponseType.Cancel,
                                      "Open",ResponseType.Accept);

          if (fc.Run() == (int)ResponseType.Accept)
          {
               System.IO.FileStream file=System.IO.File.OpenRead(fc.Filename);
               file.Close();
          }
          //Don't forget to call Destroy() or the FileChooserDialog window won't get closed.
          fc.Destroy();
     }
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to