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

This commit is contained in:
2026-01-14 08:46:14 -05:00
parent 447d1f510c
commit ac5e49d0fc
2 changed files with 15 additions and 16 deletions

View File

@@ -1279,7 +1279,7 @@ namespace ctlXMLEditLib
// When leaving the textbox
private void txtBox_Leave(object sender, EventArgs e)
{
TextBox tb = sender as TextBox;
roRichTextBox tb = sender as roRichTextBox;
string dfTxt = "";
try
{
@@ -1320,7 +1320,7 @@ namespace ctlXMLEditLib
// so clear the textbox so that user can enter the value for that child
private void txtBox_Enter(object sender, EventArgs e)
{
TextBox tb = sender as TextBox;
roRichTextBox tb = sender as roRichTextBox;
if (tb.ForeColor == SystemColors.GrayText) // currently no value set - using parent's value
{
tb.Text = "";
@@ -1547,7 +1547,6 @@ namespace ctlXMLEditLib
public void btnZoom_click(object sender, System.EventArgs e)
{
//TextBox tb = (TextBox) sender;
TextBoxAttrTag tag;
bool doimage = false;
if (zoomtextbox.Tag != null)
@@ -1591,7 +1590,7 @@ namespace ctlXMLEditLib
// file local & keep width/height of file proportional.
private void GraphicText_lostfocus(object sender, System.EventArgs e)
{
TextBox fnamebox = (TextBox) sender;
roRichTextBox fnamebox = (roRichTextBox) sender;
if (fnamebox.Text != "" && fnamebox.Modified == true)
{
FileInfo ifi = new FileInfo(fnamebox.Text);
@@ -1800,7 +1799,7 @@ namespace ctlXMLEditLib
// if changed height, calculate associated width
private void GraphicsHt_lostfocus(object sender, System.EventArgs e)
{
TextBox ht = (TextBox) sender;
roRichTextBox ht = (roRichTextBox) sender;
if (ht.Modified == true)
{
try
@@ -1817,7 +1816,7 @@ namespace ctlXMLEditLib
// if changed width, calculate associated height
private void GraphicsWd_lostfocus(object sender, System.EventArgs e)
{
TextBox wd = (TextBox) sender;
roRichTextBox wd = (roRichTextBox) sender;
if (wd.Modified == true)
{
try