From 39ce7e56e4c22358f7e842987db712b5d2d82d0d Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 16 Jun 2018 17:03:22 -0700 Subject: [PATCH] Cancel boxmenu if not clicking tab contextmenu is set causing it to open for anywhere in the box area that's white only show if right clicking the tab at the top --- PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs index ebda442a3..679ae2e62 100644 --- a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs +++ b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs @@ -93,6 +93,7 @@ namespace PKHeX.WinForms.Controls GB_Daycare.Click += SwitchDaycare; FLP_SAVtools.Scroll += WinFormsUtil.PanelScroll; Tab_Box.ContextMenuStrip = SortMenu = new BoxMenuStrip(this); + SortMenu.Opening += (s, x) => x.Cancel = !tabBoxMulti.GetTabRect(tabBoxMulti.SelectedIndex).Contains(PointToClient(MousePosition)); M.OtherSlots.Add(this); SL_Extra.ViewIndex = -2;