コード例 #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);
        }
コード例 #2
0
ファイル: PopupWindow.cs プロジェクト: sharpend/Sharpend
        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);
        }