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.

This commit is contained in:
John Jenko 2017-08-29 18:19:16 +00:00
parent f45b4e491b
commit a0d8011436

View File

@ -832,9 +832,12 @@ namespace Volian.Controls.Library
} }
public override void IdentifyMe(bool highlight) 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) 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; MyStepRTB.BackColor = Color.Gray;
}
else else
{ {
if (MyStepRTB.Focused) // If active Set BackColor to the active color if (MyStepRTB.Focused) // If active Set BackColor to the active color