Fixed code so that Right-Click is accounted for before going to an enhanced document

This commit is contained in:
Rich
2016-01-28 16:18:13 +00:00
parent 3d38002678
commit b087ce9996
3 changed files with 10 additions and 9 deletions

View File

@@ -584,7 +584,7 @@ namespace Volian.Controls.Library
if (args.MenuGroup == null)
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.ClearContextMenu();
else if (args.MenuGroup == "OpenContextMenu")
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.SetContextMenu();
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.SetContextMenu(sender);
else
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.SetShortCutContextMenu(args.MenuGroup);
}
@@ -708,7 +708,7 @@ namespace Volian.Controls.Library
}
void _MyStepRTB_OpenContextMenu(object sender, StepRTBLocationEventArgs args)
{
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.OpenContextMenu(args.Location);
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.OpenContextMenu(args.Location, sender);
}
void _MyStepRTB_DoMouseWheel(object sender, System.Windows.Forms.MouseEventArgs args)
{