C2022-003-Change-Textboxes-to-RTF-3 #676

Open
plarsen wants to merge 8 commits from C2022-003-Change-Textboxes-to-RTF-3 into Development
Showing only changes of commit 37b4726925 - Show all commits

View File

@@ -353,10 +353,10 @@ namespace ROEditor
private System.Windows.Forms.MenuItem menuEditDelete;
private System.Windows.Forms.MenuItem menuEditSelAll;
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 TextBox CurrentTextBox
public RichTextBox CurrentTextBox
{
get { return _CurrentTextBox; }
set { _CurrentTextBox = value; }
@@ -1107,14 +1107,14 @@ namespace ROEditor
protected void ctlXMLEdit2_ClickControl(object sender, EventArgs e)
{
TextBox tmpTxtbx = new TextBox();
RichTextBox tmpTxtbx = new RichTextBox();
CurrentTextBox = null;
roTreeView_ResetEditMenu();
if (sender.GetType() == tmpTxtbx.GetType())
{
tmpTxtbx = (TextBox)sender;
tmpTxtbx = (RichTextBox)sender;
CurrentTextBox = tmpTxtbx; // the text box currently selected
if (CurrentTextBox.Multiline)