[Gtk-sharp-list] Hiding a window
Brad Taylor
brad at getcoded.net
Wed Jun 20 17:09:43 EDT 2007
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
More information about the Gtk-sharp-list
mailing list