C2022-003-Change-Textboxes-to-RTF-3
This commit is contained in:
@@ -353,10 +353,10 @@ namespace ROEditor
|
|||||||
private System.Windows.Forms.MenuItem menuEditDelete;
|
private System.Windows.Forms.MenuItem menuEditDelete;
|
||||||
private System.Windows.Forms.MenuItem menuEditSelAll;
|
private System.Windows.Forms.MenuItem menuEditSelAll;
|
||||||
private TreeNode LastSelectedNode;
|
private TreeNode LastSelectedNode;
|
||||||
private TextBox _CurrentTextBox; // currently selected TextBox field
|
private RichTextBox _CurrentTextBox; // currently selected TextBox field
|
||||||
public static string[] PCChildren; //C2021-026 list of Parent/Child Children
|
public static string[] PCChildren; //C2021-026 list of Parent/Child Children
|
||||||
|
|
||||||
public TextBox CurrentTextBox
|
public RichTextBox CurrentTextBox
|
||||||
{
|
{
|
||||||
get { return _CurrentTextBox; }
|
get { return _CurrentTextBox; }
|
||||||
set { _CurrentTextBox = value; }
|
set { _CurrentTextBox = value; }
|
||||||
@@ -1107,14 +1107,14 @@ namespace ROEditor
|
|||||||
|
|
||||||
protected void ctlXMLEdit2_ClickControl(object sender, EventArgs e)
|
protected void ctlXMLEdit2_ClickControl(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
TextBox tmpTxtbx = new TextBox();
|
RichTextBox tmpTxtbx = new RichTextBox();
|
||||||
CurrentTextBox = null;
|
CurrentTextBox = null;
|
||||||
|
|
||||||
roTreeView_ResetEditMenu();
|
roTreeView_ResetEditMenu();
|
||||||
|
|
||||||
if (sender.GetType() == tmpTxtbx.GetType())
|
if (sender.GetType() == tmpTxtbx.GetType())
|
||||||
{
|
{
|
||||||
tmpTxtbx = (TextBox)sender;
|
tmpTxtbx = (RichTextBox)sender;
|
||||||
CurrentTextBox = tmpTxtbx; // the text box currently selected
|
CurrentTextBox = tmpTxtbx; // the text box currently selected
|
||||||
|
|
||||||
if (CurrentTextBox.Multiline)
|
if (CurrentTextBox.Multiline)
|
||||||
|
|||||||
Reference in New Issue
Block a user