Esempio n. 1
0
        internal void ShowPopup(Xwt.Widget widget, Xwt.Rectangle caret, PopupPosition position)
        {
            xwtParent            = widget;
            this.currentCaret    = new Gdk.Rectangle((int)caret.X, (int)caret.Y, (int)caret.Width, (int)caret.Height);
            Theme.TargetPosition = position;
            var pos = GtkUtil.GetSceenBounds(widget);

            targetWindowOrigin = new Point((int)pos.X, (int)pos.Y);
            RepositionWindow();
        }
Esempio n. 2
0
        public void ShowPopup(Widget widget, Rectangle targetRectangle, PopupPosition position)
        {
            target         = widget;
            targetRect     = targetRectangle;
            targetPosition = position;
            TransientFor   = widget.ParentWindow;
            var pos = GtkUtil.GetSceenBounds(widget);

            targetWindowOrigin = new Point(pos.X, pos.Y);
            ShowPopupInternal();
        }
Esempio n. 3
0
        private void ShowPopup(AppKit.NSView widget, Rectangle targetRectangle, PopupPosition position)
        {
            target         = widget;
            targetRect     = targetRectangle;
            targetPosition = position;
            try {
                TransientFor = Toolkit.Load(Xwt.ToolkitType.XamMac)?.WrapWindow(widget.Window);
            } catch {
                if (MessageDialog.RootWindow != null)
                {
                    TransientFor = MessageDialog.RootWindow;
                }
            }
            var pos = GtkUtil.GetSceenBounds(widget);

            targetWindowOrigin = new Point(pos.X, pos.Y);
            ShowPopupInternal();
        }