RichTextBox pseudo caret when it doesn't have focus

This commit is contained in:
Rich
2011-02-09 21:52:56 +00:00
parent c0a822d4f7
commit 41c8a90bdf
6 changed files with 113 additions and 5 deletions

View File

@@ -532,6 +532,7 @@ namespace Volian.Controls.Library
}
private void SetUpStepRTB()
{
DetectUrls = false;
C1SpellChecker2.SetActiveSpellChecking(this, true);
this.Height = 10; // initialize the height to 10, the default height was too big for the cells in grid tables
BorderStyle = System.Windows.Forms.BorderStyle.None;
@@ -893,7 +894,7 @@ namespace Volian.Controls.Library
{
string fonttab = FontTable;
string fontsize = FontSize;
this.DetectUrls = false;
//if (this.DetectUrls) this.DetectUrls = false;
if (SelectionLength > 0)HandleDeleteKeyWithSelectedText(new KeyEventArgs(Keys.None), null);
int position = SelectionStart;
SelectionLength = 0;
@@ -905,7 +906,7 @@ namespace Volian.Controls.Library
}
private void AddLink50(string linkValue, string linkUrl)
{
this.DetectUrls = false;
//this.DetectUrls = false;
int position = SelectionStart;
SelectionLength = 0;
SelectedRtf = string.Format(@"{{\rtf\field{{\*\fldinst{{HYPERLINK ""www.volian.com #{0}"" }}}}{{\fldrslt{{\cf2\ul {1}}}}}}}", linkUrl, linkValue);