[Gtk-sharp-list] Cancel delete_event in a window?

big jane bigjane2006 at gmail.com
Sun Dec 3 16:06:53 EST 2006


It is quite similar in GTK. It is enough to implement DeleteEvent
handler so that it assigns "true" to RetVal property of
DeleteEventArgs parameter:

a.RetVal = true;

where "a" is  DeleteEventArgs. This assignment prevents the default
event hadler to be called.

Regards,
Kamila


2006/12/2, Carlos Adriano Portes <xcap2000 at gmail.com>:
> Is it possible to cancel the delete event in a window as in winforms
> using "e.Cancel=true;" ?
>
> Thanks in advance.
> _______________________________________________
> 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