Hi.

On 12/13/06, Duong Nguyen <[EMAIL PROTECTED]> 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  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
>
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to