[Gtk-sharp-list] MessageDialog?
Duong Nguyen
duongnguyen at mail.ru
Thu Dec 14 06:24:21 EST 2006
Hi Jacod, White Spirit!
Thanks alot!
even when set md.Model = false, my application still hangs up on this
MessageDialog/
----- Original Message -----
From: "Jacob Ilsø Christensen" <jacobilsoe at gmail.com>
To: "Duong Nguyen" <duongnguyen at mail.ru>
Cc: <Gtk-sharp-list at lists.ximian.com>
Sent: Thursday, December 14, 2006 1:14 AM
Subject: Re: [Gtk-sharp-list] MessageDialog?
> 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
>>
>>
>>
> _______________________________________________
> 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