mail-archives/gtk-sharp-list/2009-December/010011.html

78 строки
3.2 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:02:55 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] How to show dialog modal and wait for it?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20How%20to%20show%20dialog%20modal%20and%20wait%20for%20it%3F&In-Reply-To=4B347D5E.2060605%40gmx.net">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="010010.html">
<LINK REL="Next" HREF="010012.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] How to show dialog modal and wait for it?</H1>
<B>Maciej Pilichowski</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20How%20to%20show%20dialog%20modal%20and%20wait%20for%20it%3F&In-Reply-To=4B347D5E.2060605%40gmx.net"
TITLE="[Gtk-sharp-list] How to show dialog modal and wait for it?">bluedzins at wp.pl
</A><BR>
<I>Fri Dec 25 04:20:05 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="010010.html">[Gtk-sharp-list] How to show dialog modal and wait for it?
</A></li>
<LI>Next message: <A HREF="010012.html">[Gtk-sharp-list] How to show dialog modal and wait for it?
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#10011">[ date ]</a>
<a href="thread.html#10011">[ thread ]</a>
<a href="subject.html#10011">[ subject ]</a>
<a href="author.html#10011">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hello,
&gt;<i> I think that you're missing a call to hide the dialog window. If
</I>&gt;<i> you insert a md.Hide (); statement after the md.Run (); line
</I>&gt;<i> everything should work fine.
</I>&gt;<i>
</I>&gt;<i> If it still doesn't work out: What is the Gtk.Response type
</I>&gt;<i> returned by &quot;(Gtk.ResponseType) dialog.Run ();&quot;? Does the whole
</I>&gt;<i> thing work if you use &quot;null&quot; as the parent window (first argument
</I>&gt;<i> to constructor)?
</I>
Neither Hide or passing null changes anything. The result is -7.
Maybe I rephrase my wish to be more precise -- when I call modal
dialog I would like the events in main dialog won't be run in
parallel. Because some events in main dialog cause the modal dialog
to show up, and if they are run in parallel I end up with several
error dialog boxes informing user that (for example) loading of data
were not successful.
Cheers,
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="010010.html">[Gtk-sharp-list] How to show dialog modal and wait for it?
</A></li>
<LI>Next message: <A HREF="010012.html">[Gtk-sharp-list] How to show dialog modal and wait for it?
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#10011">[ date ]</a>
<a href="thread.html#10011">[ thread ]</a>
<a href="subject.html#10011">[ subject ]</a>
<a href="author.html#10011">[ 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>