Пример #1
0
        public GtkSharpFrame(Widget shellobject, string caption)
            : base(shellobject)
        {
            frame = new Gtk.Frame(caption);
            GtkSharpDriver.InitWidget(frame, shellobject);
            frame.Show();

            fixchild = new Gtk.Fixed();
            frame.Add(fixchild);
            fixchild.Show();
        }
Пример #2
0
        public GtkSharpWindow(Widget shellobject, string caption)
            : base(shellobject)
        {
            window = new Gtk.Window(caption);
            GtkSharpDriver.InitWidget(window, shellobject);
            window.ResizeChecked += new EventHandler(EventResizeChecked);
            window.Hidden        += new EventHandler(EventClosed);

            //window.WindowPosition = Gtk.WindowPosition.Mouse;

            fixchild = new Gtk.Fixed();
            fixchild.Show();
            window.Add(fixchild);

            window.DeleteEvent   += new Gtk.DeleteEventHandler(window_DeleteEvent);
            window.KeyPressEvent += new Gtk.KeyPressEventHandler(window_KeyPressEvent);
        }