diff --git a/PROMS/Volian.Controls.Library/StepItem.cs b/PROMS/Volian.Controls.Library/StepItem.cs index 6bc199cd..096b2c63 100644 --- a/PROMS/Volian.Controls.Library/StepItem.cs +++ b/PROMS/Volian.Controls.Library/StepItem.cs @@ -737,7 +737,7 @@ namespace Volian.Controls.Library } private void SetupStepItem(ItemInfo itemInfo, StepPanel myStepPanel, StepItem myParentStepItem, ChildRelation myChildRelation, bool expand, StepItem nextStepItem) { - if (itemInfo.ItemID == 225) _MyStepRTB.Resize += new EventHandler(_MyStepRTB_Resize); + //if (itemInfo.ItemID == 225) _MyStepRTB.Resize += new EventHandler(_MyStepRTB_Resize); _MyStepRTB.MyStepItem = this; //// TIMING: DisplayItem.TimeIt("CSLARTB InitComp"); BackColor = myStepPanel.PanelColor; diff --git a/PROMS/Volian.Controls.Library/StepPanel.cs b/PROMS/Volian.Controls.Library/StepPanel.cs index 558651ad..e53e2617 100644 --- a/PROMS/Volian.Controls.Library/StepPanel.cs +++ b/PROMS/Volian.Controls.Library/StepPanel.cs @@ -337,13 +337,18 @@ namespace Volian.Controls.Library if(value != null) value.BackColor = ActiveColor; // Set the active color if (_SelectedStepRTB == value) return; // Same - No Change + //RHM ToDo: Why doesn't it have focus for copy Step/Paste + if (value != null) value.Focus(); if (_SelectedStepRTB != null && _SelectedStepRTB.BeingDisposed == false) { //_SelectedStepRTB.BackColor = InactiveColor; _SelectedStepRTB.SetBackColor(); _SelectedStepRTB.SaveText(); // Save any changes to the text _SelectedStepRTB.SaveConfig(); // This may be redundant + //int selst = _SelectedStepRTB.SelectionStart; _SelectedStepRTB.RTBFillIn(false); + //_SelectedStepRTB.SetSelection(selst, 0); + //_SelectedStepRTB.SelectionStart=selst; _SelectedStepRTB.ViewRTB = true; } _SelectedStepRTB = value;