Ejemplo n.º 1
0
        public PopupWindow(CustomWidget widget) : base(Gtk.WindowType.Toplevel)
        {
            SetSizeRequest(320, 200);
            box.Expand = true;
            this.Add(box);

            Decorated = true;
            //TransientFor = (Gtk.Window) frame.Toplevel;
            TypeHint       = WindowTypeHint.Utility;
            WindowPosition = WindowPosition.Center;
            widget.Visible = true;
            box.PackEnd(widget, true, true, 0);
            widget.Visible = true;
            //
            CurrentWidget = widget;
            //Console.WriteLine(widget.Parent);
        }
Ejemplo n.º 2
0
        public PopupWindow(CustomWidget widget)
            : base(Gtk.WindowType.Toplevel)
        {
            SetSizeRequest(320,200);
            box.Expand = true;
            this.Add(box);

            Decorated = true;
            //TransientFor = (Gtk.Window) frame.Toplevel;
            TypeHint = WindowTypeHint.Utility;
            WindowPosition = WindowPosition.Center;
            widget.Visible = true;
            box.PackEnd(widget,true,true,0);
            widget.Visible = true;
            //
            CurrentWidget = widget;
            //Console.WriteLine(widget.Parent);
        }