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; }
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; }