Changeset 4412


Ignore:
Timestamp:
09/16/10 14:47:27 (9 years ago)
Author:
cneumuel
Message:

Let LogView scroll down automatically on new message (#1189)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/LogView.cs

    r3764 r4412  
    8888      if (InvokeRequired)
    8989        Invoke(new EventHandler<EventArgs<string>>(Content_MessageAdded), sender, e);
    90       else
     90      else {
    9191        logTextBox.Text = Content.Messages.Aggregate((x, y) => x + Environment.NewLine + y);
     92        logTextBox.SelectionStart = logTextBox.Text.Length;
     93        logTextBox.ScrollToCaret();
     94      }
    9295    }
    9396
Note: See TracChangeset for help on using the changeset viewer.