[Gtk-sharp-list] problems with GdkWindow
Thomas 'Dent' Mirlacher
dent@cosy.sbg.ac.at
Thu, 27 Feb 2003 17:36:02 +0100 (MET)
hi,
> If I remember correctly,.... You have to "Show" (or "ShowAll")
> your Widget/Window/Whatever before a Gdk.Window is created.
>
> So... try the following...
>
> Application.Init();
>
> win.ShowAll();
>
> Gtk.Window win = new Gtk.Window("scrolling");
> Gdk.Window gdkwin = win.GdkWindow;
>
> Application.Run();
well that doesn't seem to work (since the gtk window is created after it's shown :)
second thing is, i can live with having to realize the window. but i definitely
need the gdkwin before showing it (map, expose)
> (Where the Gdk.Window stuff comes after the "ShowAll".)
nope, doesn't work eigther - same thing.
thanks,
++Thomas
--
"They that can give up liberty to obtain a little temporary safety
deserve neighter liberty nor safety" - Benjamin Franklin