示例#1
0
        public void ShowSubmenu(IDesignArea area, Gtk.Widget refWidget)
        {
            HideSubmenu();
            Gdk.Rectangle rect = area.GetCoordinates(refWidget);
            ActionMenu    menu = new ActionMenu(wrapper, parentMenu, node);

            menu.ShowAll();
            area.AddWidget(menu, rect.Right, rect.Top);
            menu.TrackWidgetPosition(refWidget, parentMenu.IsTopMenu);

            parentMenu.OpenSubmenu = menu;
        }
示例#2
0
		public void ShowSubmenu (IDesignArea area, Gtk.Widget refWidget)
		{
			HideSubmenu ();
			Gdk.Rectangle rect = area.GetCoordinates (refWidget);
			ActionMenu menu = new ActionMenu (wrapper, parentMenu, node);
			menu.ShowAll ();
			area.AddWidget (menu, rect.Right, rect.Top);
			menu.TrackWidgetPosition (refWidget, parentMenu.IsTopMenu);
			
			parentMenu.OpenSubmenu = menu;
		}