diff --git a/PROMS/Volian.Controls.Library/GridItem.cs b/PROMS/Volian.Controls.Library/GridItem.cs index c4c6ecbb..eea8e220 100644 --- a/PROMS/Volian.Controls.Library/GridItem.cs +++ b/PROMS/Volian.Controls.Library/GridItem.cs @@ -273,11 +273,23 @@ namespace Volian.Controls.Library this.MyStepRTB.GotFocus += new EventHandler(MyStepRTB_GotFocus); this.MyStepRTB.RoInsert += new StepRTBRoEvent(MyStepRTB_RoInsert); this.MyFlexGrid.AdjustPastedText += new VlnFlexGridPasteEvent(MyFlexGrid_AdjustPastedText); + this.MyStepRTB.SetMenu += new StepRTBMenuEvent(MyStepRTB_SetMenu); + this.MyStepRTB.OpenContextMenu += new StepRTBLocationEvent(MyStepRTB_OpenContextMenu); // This Resize event has been useful for debugging purposes numerous times // //this.MyStepRTB.Resize += new EventHandler(MyStepRTB_Resize); } + void MyStepRTB_OpenContextMenu(object sender, StepRTBLocationEventArgs args) + { + MyStepPanel.MyStepTabPanel.MyStepTabRibbon.OpenContextMenu(args.Location); + } + + void MyStepRTB_SetMenu(object sender, StepRTBMenuEventArgs args) + { + SetMenu(args.MenuGroup); + } + // This Resize event been useful for debugging purposes numerous times // //void MyStepRTB_Resize(object sender, EventArgs e) @@ -1139,6 +1151,7 @@ namespace Volian.Controls.Library } } } + #endregion } }