[Gtk-sharp-list] MessageDialog?
Duong Nguyen
duongnguyen at mail.ru
Wed Dec 13 16:57:56 EST 2006
Hello,
I try to create and run a MessageDialog, but when I run my application (with the Glade form named Window), the MessageDialog appears in unusual way (application suspended)
Gtk.MessageDialog md = new Gtk.MessageDialog(MainWindow,
Gtk.DialogFlags.DestroyWithParent,
Gtk.MessageType.Question,
Gtk.ButtonsType.YesNo, szQuestion);
md.Modal = true;
Gtk.ResponseType result = (Gtk.ResponseType)md.Run();
if (result == Gtk.ResponseType.Yes)
{
md.Destroy();
DoSomething();
}
else
{
md.Destroy();
DoSomethingElse();
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20061214/6ab5b59c/attachment.html
More information about the Gtk-sharp-list
mailing list