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
This commit is contained in:
Kurt 2018-06-16 17:03:22 -07:00
parent cb0ae14a50
commit 39ce7e56e4

View file

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