RichTextBox pseudo caret when it doesn't have focus
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user