зеркало из https://github.com/mono/mail-archives.git
78 строки
3.2 KiB
HTML
78 строки
3.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Gtk-sharp-list] Event when application is about to close
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Event%20when%20application%20is%20about%20to%20close&In-Reply-To=45BC9A0B.7030304%40pp.inet.fi">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="007743.html">
|
|
<LINK REL="Next" HREF="007745.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Gtk-sharp-list] Event when application is about to close</H1>
|
|
<B>Petteri Kautonen</B>
|
|
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Event%20when%20application%20is%20about%20to%20close&In-Reply-To=45BC9A0B.7030304%40pp.inet.fi"
|
|
TITLE="[Gtk-sharp-list] Event when application is about to close">petteri.kautonen at pp.inet.fi
|
|
</A><BR>
|
|
<I>Sun Jan 28 07:58:22 EST 2007</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="007743.html">[Gtk-sharp-list] Event when application is about to close
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007745.html">[Gtk-sharp-list] Cairo: how to use gtkrc?
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7744">[ date ]</a>
|
|
<a href="thread.html#7744">[ thread ]</a>
|
|
<a href="subject.html#7744">[ subject ]</a>
|
|
<a href="author.html#7744">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>Hi again,
|
|
I found the answer my self:
|
|
even handler to Gtk.Widget.DeleteEvent:
|
|
void MainWindowDeleteEvent(object o, DeleteEventArgs args)
|
|
{
|
|
args.RetVal = true;
|
|
}
|
|
|
|
When the RetVal is true the application refuses to close.
|
|
|
|
Petteri Kautonen wrote:
|
|
><i> Hi,
|
|
</I>><i> I have an application that handles several opened files. When
|
|
</I>><i> application is about to close the user should be asked whether to save
|
|
</I>><i> possible changes to these files before actually allow the application
|
|
</I>><i> to close. What would be the correct event to handle this?
|
|
</I>><i> _______________________________________________
|
|
</I>><i> Gtk-sharp-list maillist - <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">Gtk-sharp-list at lists.ximian.com</A>
|
|
</I>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</A>
|
|
</I>><i>
|
|
</I>><i>
|
|
</I></PRE>
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="007743.html">[Gtk-sharp-list] Event when application is about to close
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007745.html">[Gtk-sharp-list] Cairo: how to use gtkrc?
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7744">[ date ]</a>
|
|
<a href="thread.html#7744">[ thread ]</a>
|
|
<a href="subject.html#7744">[ subject ]</a>
|
|
<a href="author.html#7744">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
|
|
mailing list</a><br>
|
|
</body></html>
|