From b9dd99d3941bc061d53e049f666b4f5a9ad27d87 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 7 Jun 2011 19:06:21 +0000 Subject: [PATCH] Spell Check Context menu fix --- PROMS/Volian.Controls.Library/GridItem.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 } }