* determining
whether or not to show the selection.
* RichTextBox.cs: After inserting the RTF into the document move
the cursor to the beginning of the document.
svn path=/trunk/mcs/; revision=69203
+2006-12-07 Jackson Harper <jackson@ximian.com>
+
+ * TextBoxBase.cs: Take HideSelection into account when determining
+ whether or not to show the selection.
+ * RichTextBox.cs: After inserting the RTF into the document move
+ the cursor to the beginning of the document.
+
2006-12-07 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Remove static ArrayList "controls" which maintained
}
InsertRTFFromStream(data, 0, 1);
+
+ document.PositionCaret (document.GetLine (1), 0);
+ document.SetSelectionToCaret (true);
+ ScrollToCaret ();
}
[MonoTODO("Make smarter RTF detection?")]
internal bool ShowSelection {
get {
- if (show_selection) {
+ if (show_selection || !hide_selection) {
return true;
}