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

This commit is contained in:
2026-01-13 11:46:47 -05:00
parent 5e7d2431b3
commit f8865206e9
7 changed files with 135 additions and 57 deletions

View File

@@ -354,11 +354,11 @@ namespace ROEditor
private System.Windows.Forms.MenuItem menuEditDelete;
private System.Windows.Forms.MenuItem menuEditSelAll;
private TreeNode LastSelectedNode;
private RichTextBox _CurrentTextBox; // currently selected TextBox field
private roRichTextBox _CurrentTextBox; // currently selected TextBox field
public static string[] PCChildren; //C2021-026 list of Parent/Child Children
//private StepTabRibbon _MyStepTabRibbon;
public RichTextBox CurrentTextBox
public roRichTextBox CurrentTextBox
{
get { return _CurrentTextBox; }
set { _CurrentTextBox = value; }
@@ -1124,14 +1124,14 @@ namespace ROEditor
protected void ctlXMLEdit2_ClickControl(object sender, EventArgs e)
{
RichTextBox tmpTxtbx = new RichTextBox();
roRichTextBox tmpTxtbx = new roRichTextBox();
CurrentTextBox = null;
roTreeView_ResetEditMenu();
if (sender.GetType() == tmpTxtbx.GetType())
{
tmpTxtbx = (RichTextBox)sender;
tmpTxtbx = (roRichTextBox)sender;
CurrentTextBox = tmpTxtbx; // the text box currently selected
if (CurrentTextBox.Multiline)