[Gtk-sharp-list] problems with GdkWindow

Thomas 'Dent' Mirlacher dent@cosy.sbg.ac.at
Fri, 28 Feb 2003 01:06:44 +0100 (MET)


hi,

--snip/snip
> Hook up to the realized event of the Gtk.Window.  At that point the
> GdkWindow value is valid.

ok, so i changed it to reflect all the ideas - still no go.

--------------------
using Gtk;
using Gdk;
using GtkSharp;
using System;

public class Test {
        static void OnRealize(object obj, EventArgs args)
        {
                Console.WriteLine("realize");
        }

        public static void Main(string[] args)
        {
                Application.Init();

                Gtk.Window win = new Gtk.Window("scrolling");
                win.Realized += new EventHandler(OnRealize);

                win.ShowAll();

                Console.WriteLine("getting gdk window");
                Gdk.Window gdkwin = win.GdkWindow;

                Application.Run();
        }
}
--------------------

cheers,

	++Thomas


-- 
"They that can give up liberty to obtain a little temporary safety
 deserve neighter liberty nor safety" - Benjamin Franklin