From 3929c5c36f8121b4d708dfca7f07fcc52cb22967 Mon Sep 17 00:00:00 2001 From: mschill Date: Tue, 20 Oct 2026 10:24:23 -0400 Subject: [PATCH] B2026-085 Disable Symbols when leave a TextBox --- .../LibSource/ctlXMLEditLib/ctlXMLEdit.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/ctlXMLEdit.cs b/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/ctlXMLEdit.cs index 95beb6ce..4484671f 100644 --- a/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/ctlXMLEdit.cs +++ b/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/ctlXMLEdit.cs @@ -1220,6 +1220,11 @@ namespace ctlXMLEditLib mytextbox.Enter += new System.EventHandler(this.txtBox_Enter); mytextbox.Leave += new System.EventHandler(this.txtBox_Leave); } + else + { + //B2026-085 Disable Symbols when leave a TextBox + mytextbox.Leave += txtBox_Leave_DisableSymbols; + } string labelAnnot; bool imgchld = false; @@ -1311,7 +1316,12 @@ namespace ctlXMLEditLib tb.Text = dfTxt; tb.ForeColor = SystemColors.GrayText; } - } + + txtBox_Leave_DisableSymbols(sender, e); + } + + //B2026-085 Disable Symbols when leave a TextBox + private void txtBox_Leave_DisableSymbols(object sender, EventArgs e) => OnEnableDisableSymbolsBtn(new ctlXMLEditEventArgs(DisplaySymBolBtn:false)); // C2021-026 Event handler for Parent/Child child textbox // If the textbox is set to gray, then we are using the parent value -- 2.54.0