From a0d8011436a09c92611a4acd8cfd9b47730e5d9b Mon Sep 17 00:00:00 2001 From: John Date: Tue, 29 Aug 2017 18:19:16 +0000 Subject: [PATCH] B2017-187 calling BringToFront all the time was considerably slowing down paging through a procedure with long steps and would make the scroll bar ineffective. --- PROMS/Volian.Controls.Library/RTBItem.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/RTBItem.cs b/PROMS/Volian.Controls.Library/RTBItem.cs index cffc4fd4..c29a53df 100644 --- a/PROMS/Volian.Controls.Library/RTBItem.cs +++ b/PROMS/Volian.Controls.Library/RTBItem.cs @@ -832,9 +832,12 @@ namespace Volian.Controls.Library } public override void IdentifyMe(bool highlight) { - this.BringToFront(); + //this.BringToFront(); // B2017-187 when called all the time, slows down the display of step and confuses the scroll bar if (highlight) + { + MyStepRTB.BringToFront(); // B2017-187 when called all the time, slows down the display of step and confuses the scroll bar MyStepRTB.BackColor = Color.Gray; + } else { if (MyStepRTB.Focused) // If active Set BackColor to the active color