зеркало из https://github.com/mono/mail-archives.git
124 строки
5.4 KiB
HTML
124 строки
5.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Gtk-sharp-list] Hiding a window
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Hiding%20a%20window&In-Reply-To=455de9380706201356x7801658ds8534d2f5ac1c5bd0%40mail.gmail.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="008111.html">
|
|
<LINK REL="Next" HREF="008113.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Gtk-sharp-list] Hiding a window</H1>
|
|
<B>Søren Juul</B>
|
|
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Hiding%20a%20window&In-Reply-To=455de9380706201356x7801658ds8534d2f5ac1c5bd0%40mail.gmail.com"
|
|
TITLE="[Gtk-sharp-list] Hiding a window">zpon.dk at gmail.com
|
|
</A><BR>
|
|
<I>Wed Jun 20 17:04:37 EDT 2007</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="008111.html">[Gtk-sharp-list] Hiding a window
|
|
</A></li>
|
|
<LI>Next message: <A HREF="008113.html">[Gtk-sharp-list] Hiding a window
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#8112">[ date ]</a>
|
|
<a href="thread.html#8112">[ thread ]</a>
|
|
<a href="subject.html#8112">[ subject ]</a>
|
|
<a href="author.html#8112">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>Yes of course, the source code is at <A HREF="http://www.zpon.dk/tmp/test.cs">http://www.zpon.dk/tmp/test.cs</A> - sorry
|
|
if it is messy
|
|
|
|
Søren Juul
|
|
|
|
2007/6/20, Jacob Ilsø Christensen <<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">jacobilsoe at gmail.com</A>>:
|
|
><i>
|
|
</I>><i> Hi.
|
|
</I>><i>
|
|
</I>><i> Can you supply the source code? Then it's easier to determine what's
|
|
</I>><i> wrong.
|
|
</I>><i>
|
|
</I>><i> Regards,
|
|
</I>><i> Jacob
|
|
</I>><i>
|
|
</I>><i> On 6/20/07, Søren Juul <<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">zpon.dk at gmail.com</A>> wrote:
|
|
</I>><i> > Hi
|
|
</I>><i> >
|
|
</I>><i> > I am working on a very small (simple) application, mainly to get to know
|
|
</I>><i> > gtk-sharp better. But I need to hide a window, while another is showing.
|
|
</I>><i> I
|
|
</I>><i> > want to do this when a button is pushed, I thought I could do this from
|
|
</I>><i> the
|
|
</I>><i> > function connected to the button with the EventHandler, such as "
|
|
</I>><i> > button.Clicked += new EventHandler(next);"
|
|
</I>><i> > and put something like "win.Visible = false;" in that function, but when
|
|
</I>><i> I
|
|
</I>><i> > do this I get a terrible error:
|
|
</I>><i> >
|
|
</I>><i> > Unhandled Exception: System.NullReferenceException : Object reference
|
|
</I>><i> not
|
|
</I>><i> > set to an instance of an object
|
|
</I>><i> > at dataHolder.test (System.Object temp) [0x00000]
|
|
</I>><i> > at inputWindow.next (System.Object obj, System.EventArgs args)
|
|
</I>><i> [0x00000]
|
|
</I>><i> > at (wrapper delegate-invoke)
|
|
</I>><i> > System.MulticastDelegate:invoke_void_object_EventArgs
|
|
</I>><i> > (object,System.EventArgs)
|
|
</I>><i> > at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch)
|
|
</I>><i> [0x00000]
|
|
</I>><i> > at (wrapper native-to-managed) GLib.Signal:voidObjectCallback
|
|
</I>><i> > (intptr,intptr)
|
|
</I>><i> > at <0x00000> <unknown method>
|
|
</I>><i> > at (wrapper managed-to-native) Gtk.Application:gtk_main ()
|
|
</I>><i> > at Gtk.Application.Run () [0x00000]
|
|
</I>><i> > at inputWindow.makeWindow () [0x00000]
|
|
</I>><i> > at inputWindow..ctor ( System.Object temp) [0x00000]
|
|
</I>><i> > at Sample.Main () [0x00000]
|
|
</I>><i> >
|
|
</I>><i> > How can I avoid this? Hope my description was understandable, but pleas
|
|
</I>><i> ask
|
|
</I>><i> > if there is something you don't understand.
|
|
</I>><i> >
|
|
</I>><i> > Thanks in advance
|
|
</I>><i> > Søren Juul
|
|
</I>><i> >
|
|
</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>><i>
|
|
</I>-------------- next part --------------
|
|
An HTML attachment was scrubbed...
|
|
URL: <A HREF="http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070620/74ff774f/attachment-0001.html">http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070620/74ff774f/attachment-0001.html</A>
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="008111.html">[Gtk-sharp-list] Hiding a window
|
|
</A></li>
|
|
<LI>Next message: <A HREF="008113.html">[Gtk-sharp-list] Hiding a window
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#8112">[ date ]</a>
|
|
<a href="thread.html#8112">[ thread ]</a>
|
|
<a href="subject.html#8112">[ subject ]</a>
|
|
<a href="author.html#8112">[ 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>
|