[Gtk-sharp-list] MessageDialog?
Jacob Ilsø Christensen
jacobilsoe at gmail.com
Wed Dec 13 17:14:19 EST 2006
Hi.
On 12/13/06, Duong Nguyen <duongnguyen at mail.ru> wrote:
>
>
> 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;
I guess you would want to set Modal to false to prevent your
application from being suspended. Is that what you mean?
> Gtk.ResponseType
> result = (Gtk.ResponseType)md.Run();
>
> if (result ==
> Gtk.ResponseType.Yes)
> {
> md.Destroy();
> DoSomething();
> }
> else
> {
> md.Destroy();
>
> DoSomethingElse();
> }
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
>
More information about the Gtk-sharp-list
mailing list