From 32c383fffc473d03ed3ad7e75b20f9d3e07659c4 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sun, 16 Apr 2006 21:05:52 +0000 Subject: [PATCH] Fixed SD2-753: Output window does not autoscroll when it does not have focus git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1309 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../CompilerMessageView/CompilerMessageView.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/Main/Base/Project/Src/Gui/Pads/CompilerMessageView/CompilerMessageView.cs b/src/Main/Base/Project/Src/Gui/Pads/CompilerMessageView/CompilerMessageView.cs index eb72ea5a1c..b398e4937f 100644 --- a/src/Main/Base/Project/Src/Gui/Pads/CompilerMessageView/CompilerMessageView.cs +++ b/src/Main/Base/Project/Src/Gui/Pads/CompilerMessageView/CompilerMessageView.cs @@ -116,16 +116,11 @@ namespace ICSharpCode.SharpDevelop.Gui textEditorControl.LinkClicked += delegate(object sender, LinkClickedEventArgs e) { FileService.OpenFile("browser://" + e.LinkText); }; - /*textEditorControl.ShowLineNumbers = false; - textEditorControl.ShowInvalidLines = false; - textEditorControl.EnableFolding = false; - textEditorControl.IsIconBarVisible = false; - textEditorControl.Document.ReadOnly = true; - textEditorControl.ShowHRuler = false; - textEditorControl.ShowVRuler = false; - textEditorControl.ShowSpaces = false; - textEditorControl.ShowTabs = false; - textEditorControl.ShowEOLMarkers = false;*/ + + // auto-scrolling on RichTextBox only works when HideSelection=false. + // See comments to http://weblogs.asp.net/jdanforth/archive/2004/01/23/62026.aspx + textEditorControl.HideSelection = false; + textEditorControl.ReadOnly = true; textEditorControl.ContextMenuStrip = MenuService.CreateContextMenu(this, "/SharpDevelop/Pads/CompilerMessageView/ContextMenu");