@magic-xpa/gui 4.900.0-dev490.18 → 4.900.0-dev490.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1238,11 +1238,13 @@ class Commands {
1238
1238
  guiCommand.number = num;
1239
1239
  GuiCommandQueue.getInstance().addCommand(guiCommand);
1240
1240
  }
1241
- static addValueWithLine(commandType, obj, line, value) {
1241
+ static addValueWithLine(commandType, obj, line, value, reset = false) {
1242
1242
  let guiCommand = new GuiCommand(obj, commandType);
1243
1243
  guiCommand.value = value;
1244
1244
  guiCommand.line = line;
1245
1245
  if (commandType === CommandType.SET_VALUE) {
1246
+ if (reset)
1247
+ guiCommand.Bool1 = reset;
1246
1248
  if (obj instanceof GuiMgControl && obj.isChoiceControl()) {
1247
1249
  if (value < 0)
1248
1250
  guiCommand.value = '';
@@ -12470,8 +12472,12 @@ class MgControlBase extends GuiControlPropertyAdapter {
12470
12472
  if (super.isButton()) {
12471
12473
  mlsTranslatedValue = Events.Translate(this.Value);
12472
12474
  }
12473
- if (this.isTextControl() || this.isButton())
12474
- Commands.addValueWithLine(CommandType.SET_VALUE, this, displayLine, mlsTranslatedValue);
12475
+ if (this.isTextControl() || this.isButton()) {
12476
+ if (this.isTextControl() && this.getForm().inRefreshDisplay() && this.DataType == StorageAttribute.NUMERIC)
12477
+ Commands.addValueWithLine(CommandType.SET_VALUE, this, displayLine, mlsTranslatedValue, true);
12478
+ else
12479
+ Commands.addValueWithLine(CommandType.SET_VALUE, this, displayLine, mlsTranslatedValue);
12480
+ }
12475
12481
  else
12476
12482
  Commands.addOperationWithLine(CommandType.SET_PROPERTY, this, displayLine, HtmlProperties.Text, mlsTranslatedValue);
12477
12483
  }