This commit is contained in:
parent
8480abfdc3
commit
202b08e8ef
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user