[Gtk-sharp-list] Cancel response of dialog conditionally

Paul Lange palango at gmx.de
Mon Mar 2 11:33:39 EST 2009


I have a dialog which derives from Gtk.Dialog. It has an OK-Button. If
this is clicked I want to do some tests. If they went right the dilog
should close and the response should be ResponseType.Ok. (This is what
currently works)

If one of the tests fail I want to show some message dialogs and after
that cancel the closing of the dialog and giving a response.

So my question is if I can stop the closing of the dialog in a button
click event or the Dialog.Response event and if yes - how do I do that.

Thank you!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20090302/6f8e23c7/attachment.bin 

More information about the Gtk-sharp-list mailing list