[Gtk-sharp-list] Using a Dialog box defined with glade with an Gtk.Dialog herited class

lordphoenix lordphoenix at free.fr
Wed Nov 15 07:23:18 EST 2006

I should like use a dialog box defined with Glade in a mono application.
For the moment I'm trying to do it on this way but I didn't succeed : 
First I've defined this class:

public class mydialog : Gtk.Dialog
  public mydialog() : base()
    Glade.XML gxml = new Glade.XMl(null,"gui.glade",mydialog,null);

In order to use this dialogbox I'm using this code : 

mydialog  dgl = new mydialog();
int result = mydialog.Run()
if (result==(int)ResponseType.Ok)
{//traitement if OK}

When I'm using this I have a dialog box but it is empty 

Someone has an idea about my mistake or about another way to obtain
same result?

PS : Sorry for my bad English I'm french and don't speak English very
often :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20061115/c7542b97/attachment.bin 

More information about the Gtk-sharp-list mailing list