[Gtk-sharp-list] Hiding a window

Søren Juul zpon.dk at gmail.com
Wed Jun 20 17:13:52 EDT 2007


Oh, of course, why didn't I see that?
Thank you so much!

Søren Juul

2007/6/20, Brad Taylor <brad at getcoded.net>:
>
> On Wed, 2007-06-20 at 23:04 +0200, Søren Juul wrote:
> > Yes of course, the source code is at http://www.zpon.dk/tmp/test.cs -
> > sorry if it is messy
>
>         void makeWindow()
>         {
>                 Application.Init ();
>                 Window win = new Window ("gArray");
>                 win.SetDefaultSize (150, 150);
>
> You're creating a new "win" object in the local context and showing
> that instead of setting/using the "win" you created in a module level
> context.  This should be:
>
>
>         void makeWindow()
>         {
>                 Application.Init ();
>                 win = new Window ("gArray");
>                 win.SetDefaultSize (150, 150);
>
> so that next () can use it.
>
> Best,
>
> -Brad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070620/4917accb/attachment.html 


More information about the Gtk-sharp-list mailing list