Пример #1
0
        protected override void OnPressed()
        {
            base.OnPressed();
            if (popup == null)
            {
                popup = new WidgetTreePopup(project);
                popup.WidgetActivated += OnPopupActivated;
                popup.SetDefaultSize(Allocation.Width, 500);
            }
            else if (popup.Visible)
            {
                popup.Hide();
                return;
            }

            int x, y;

            ParentWindow.GetOrigin(out x, out y);
            x += Allocation.X;
            y += Allocation.Y + Allocation.Height;

            popup.Fill(RootWidget.Wrapped);
            popup.Move(x, y);
            popup.ShowAll();
        }
Пример #2
0
		protected override void OnPressed ()
		{
			base.OnPressed ();
			if (popup == null) {
				popup = new WidgetTreePopup (project);
				popup.WidgetActivated += OnPopupActivated;
				popup.SetDefaultSize (Allocation.Width, 500);
			}
			else if (popup.Visible) {
				popup.Hide ();
				return;
			}
			
			int x, y;
			ParentWindow.GetOrigin (out x, out y);
			x += Allocation.X;
			y += Allocation.Y + Allocation.Height;
			
			popup.Fill (RootWidget.Wrapped);
			popup.Move (x, y);
			popup.ShowAll ();
		}