@magic-xpa/gui 4.801.0-dev481.292 → 4.801.0-dev481.293

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.
@@ -605,19 +605,6 @@ class GuiInteractiveBase {
605
605
  this.Invoke();
606
606
  return this._mgValue.boolVal;
607
607
  }
608
- GetSelectedIndice(guiMgControl) {
609
- this._commandType = InteractiveCommandType.GET_SELECTED_INDICE;
610
- this._obj1 = guiMgControl;
611
- this._mgValue = new MgValue();
612
- this.Invoke();
613
- return this._mgValue.str;
614
- }
615
- GetHasIndent(guiMgControl) {
616
- this._commandType = InteractiveCommandType.GET_HASINDENT;
617
- this._obj1 = guiMgControl;
618
- this.Invoke();
619
- return this._boolVal;
620
- }
621
608
  setGetSuggestedValueOfChoiceControlOnTagData(ctrl, line, retSuggestedValue) {
622
609
  this._commandType = InteractiveCommandType.SET_GET_SUGGESTED_VALUE_FOR_CHOICE_CONTROL_ON_TAGDATA;
623
610
  this._obj2 = ctrl;
@@ -647,20 +634,6 @@ class GuiInteractiveBase {
647
634
  this.Invoke();
648
635
  return this._boolVal;
649
636
  }
650
- browserExecute(browserControl, text, syncExec, language) {
651
- this._commandType = InteractiveCommandType.BROWSER_EXECUTE;
652
- this._obj2 = browserControl;
653
- this._mgValue = new MgValue();
654
- this._mgValue.str = text;
655
- this._mgValue.obj = language;
656
- if (syncExec) {
657
- this.Invoke();
658
- return this._mgValue.boolVal;
659
- }
660
- else {
661
- return true;
662
- }
663
- }
664
637
  messageBox(title, msg, style) {
665
638
  this._commandType = InteractiveCommandType.MESSAGE_BOX;
666
639
  this._mgValue = new MgValue();
@@ -678,57 +651,12 @@ class GuiInteractiveBase {
678
651
  this._mgValue.title = ((title === null) ? '' : title);
679
652
  this.Invoke();
680
653
  }
681
- invokeUDP(contextId) {
682
- this._commandType = InteractiveCommandType.INVOKE_UDPCOMMAND;
683
- this._mgValue = new MgValue();
684
- this._mgValue.obj = contextId;
685
- this.Invoke();
686
- return this._mgValue.number;
687
- }
688
- directoryDialogBox(caption, path, bShowNewFolder) {
689
- this._commandType = InteractiveCommandType.DIRECTORY_DIALOG_BOX;
690
- this._mgValue = new MgValue();
691
- this._mgValue.caption = caption;
692
- this._mgValue.path = path;
693
- this._mgValue.bool1 = bShowNewFolder;
694
- this.Invoke();
695
- return this._mgValue.str;
696
- }
697
- fileOpenDialogBox(title, dirName, fileName, filterNames, checkExists, multiSelect) {
698
- this._commandType = InteractiveCommandType.FILE_OPEN_DIALOG_BOX;
699
- this._mgValue = new MgValue();
700
- this._mgValue.title = title;
701
- this._mgValue.path = dirName;
702
- this._mgValue.str = fileName;
703
- this._mgValue.filter = filterNames;
704
- this._mgValue.boolVal = checkExists;
705
- this._mgValue.bool1 = multiSelect;
706
- this.Invoke();
707
- return this._mgValue.str;
708
- }
709
- fileSaveDialogBox(title, dirName, fileName, filterNames, defaultExtension, overwritePrompt) {
710
- this._commandType = InteractiveCommandType.FILE_SAVE_DIALOG_BOX;
711
- this._mgValue = new MgValue();
712
- this._mgValue.title = title;
713
- this._mgValue.path = dirName;
714
- this._mgValue.str = fileName;
715
- this._mgValue.filter = filterNames;
716
- this._mgValue.caption = defaultExtension;
717
- this._mgValue.bool1 = overwritePrompt;
718
- this.Invoke();
719
- return this._mgValue.str;
720
- }
721
654
  createDialog(handle, parameters) {
722
655
  this._commandType = InteractiveCommandType.CREATE_DIALOG;
723
656
  this._parameters = parameters;
724
657
  this._obj2 = handle;
725
658
  this.Invoke();
726
659
  }
727
- closeDialog(handle) {
728
- this._commandType = InteractiveCommandType.CLOSE_DIALOG;
729
- this._obj2 = handle;
730
- this.Invoke();
731
- }
732
660
  setEditText(control, line, text) {
733
661
  this._commandType = InteractiveCommandType.SET_EDIT_TEXT;
734
662
  this._obj2 = control;
@@ -748,23 +676,6 @@ class GuiInteractiveBase {
748
676
  this.Invoke();
749
677
  return this._mgValue.boolVal;
750
678
  }
751
- setSelection(control, line, start, end, caretPos) {
752
- this._commandType = InteractiveCommandType.SET_SELECTION;
753
- this._obj2 = control;
754
- this._line = line;
755
- this._x = start;
756
- this._y = end;
757
- this._mgValue = new MgValue();
758
- this._mgValue.number = caretPos;
759
- this.Invoke();
760
- }
761
- setSuggestedValue(control, suggestedValue) {
762
- this._commandType = InteractiveCommandType.SET_SUGGESTED_VALUE;
763
- this._obj2 = control;
764
- this._mgValue = new MgValue();
765
- this._mgValue.str = suggestedValue;
766
- this.Invoke();
767
- }
768
679
  caretPosGet(control, line) {
769
680
  this._commandType = InteractiveCommandType.GET_CARET_POS;
770
681
  this._obj2 = control;
@@ -780,20 +691,6 @@ class GuiInteractiveBase {
780
691
  this.Invoke();
781
692
  return;
782
693
  }
783
- getIsTopOfTextBox(control, line) {
784
- this._commandType = InteractiveCommandType.GET_IS_TOP_OF_TEXTBOX;
785
- this._obj2 = control;
786
- this._line = line;
787
- this.Invoke();
788
- return this._boolVal;
789
- }
790
- getIsEndOfTextBox(control, line) {
791
- this._commandType = InteractiveCommandType.GET_IS_END_OF_TEXTBOX;
792
- this._obj2 = control;
793
- this._line = line;
794
- this.Invoke();
795
- return this._boolVal;
796
- }
797
694
  postKeyEvent(control, line, keys, PostChar, forceLogicalControlTextUpdate) {
798
695
  this._commandType = InteractiveCommandType.POST_KEY_EVENT;
799
696
  this._obj2 = control;
@@ -838,18 +735,6 @@ class GuiInteractiveBase {
838
735
  this.Invoke();
839
736
  return this._intVal1;
840
737
  }
841
- getLastWindowState(guiMgForm) {
842
- this._commandType = InteractiveCommandType.GET_LAST_WINDOW_STATE;
843
- this._obj2 = guiMgForm;
844
- this.Invoke();
845
- return this._intVal1;
846
- }
847
- getLinkedParentIdx(frameset) {
848
- this._commandType = InteractiveCommandType.GET_LINKED_PARENT_IDX;
849
- this._obj2 = frameset;
850
- this.Invoke();
851
- return this._intVal1;
852
- }
853
738
  getColumnsState(tableCtrl) {
854
739
  this._commandType = InteractiveCommandType.GET_COLUMNS_STATE;
855
740
  this._obj2 = tableCtrl;
@@ -857,46 +742,11 @@ class GuiInteractiveBase {
857
742
  this.Invoke();
858
743
  return this._mgValue.listOfIntArr;
859
744
  }
860
- MapWidget(newObjectToSet) {
861
- if (arguments.length === 1)
862
- this.MapWidget_0(newObjectToSet);
863
- else
864
- this.MapWidget_1();
865
- }
866
- MapWidget_0(newObjectToSet) {
867
- this._commandType = InteractiveCommandType.MAP_WIDGET_TO_GUI_OBJECT;
868
- this._obj1 = newObjectToSet;
869
- this.Invoke();
870
- }
871
745
  ActivateForm(guiMgForm) {
872
746
  this._commandType = InteractiveCommandType.ACTIVATE_FORM;
873
747
  this._obj1 = guiMgForm;
874
748
  this.Invoke();
875
749
  }
876
- isFormActive() {
877
- if (arguments.length === 1)
878
- return this.isFormActive_0();
879
- else
880
- this.isFormActive_1();
881
- }
882
- isFormActive_0() {
883
- return this._boolVal;
884
- }
885
- GetRtfValueBeforeEnteringControl(guiMgControl, line) {
886
- this._commandType = InteractiveCommandType.GET_RTF_VALUE_BEFORE_ENTERING_CONTROL;
887
- this._obj2 = guiMgControl;
888
- this._line = line;
889
- this._mgValue = new MgValue();
890
- this.Invoke();
891
- return this._mgValue.str;
892
- }
893
- GetDVControlPositionIsn(dataTable, line) {
894
- this._commandType = InteractiveCommandType.GET_DVCONTROL_POSITION_ISN;
895
- this._obj1 = dataTable;
896
- this._line = line;
897
- this.Invoke();
898
- return this._intVal1;
899
- }
900
750
  ClearDatatable(dvControl, dataTable) {
901
751
  this._commandType = InteractiveCommandType.CLEAR_DATA_TABLE;
902
752
  this._obj1 = dvControl;
@@ -941,107 +791,10 @@ class GuiInteractiveBase {
941
791
  this.TaskTag = '0';
942
792
  UIBridge.getInstance().ExecuteInteractiveCommand(this);
943
793
  }
944
- OnRemoveDNControlValueChangedHandler() {
945
- Events.WriteExceptionToLog('RemoveDNControlValueChangedHandler - Not Implemented Yet');
946
- }
947
- OnAddDNControlValueChangedHandler() {
948
- Events.WriteExceptionToLog('AddDNControlValueChangedHandler - Not Implemented Yet');
949
- }
950
- OnGetRtfValueBeforeEnteringControl() {
951
- Events.WriteExceptionToLog('OnGetOrgRtfValue - Not Implemented Yet');
952
- }
953
- onInvokeUDP() {
954
- }
955
- onFileOpenDialogBox() {
956
- }
957
- onFileSaveDialogBox() {
958
- }
959
- onCreateDialog() {
960
- }
961
- onOpenDialog() {
962
- }
963
- onCloseDialog() {
964
- }
965
- isFormActive_1() {
966
- }
967
- onDisposeAllForms() {
968
- }
969
- onGetFontMetrics() {
970
- }
971
- onGetResolution() {
972
- }
973
- onCaretPosGet() {
974
- }
975
- onGetIsTopOfTextBox() {
976
- return this._boolVal;
977
- }
978
- onGetIsEndOfTextBox() {
979
- return this._boolVal;
980
- }
981
- onSelectionGet() {
982
- }
983
- onSetEditText() {
984
- }
985
- onInsertEditText() {
986
- }
987
- onSetBrowserText() {
988
- }
989
- onSetSelection() {
990
- }
991
- onSetSuggestedValue() {
992
- }
993
794
  onGetRowsInPage() {
994
795
  }
995
- onGetHiddenRowsCountInTable() {
996
- }
997
- onGetTopIndex() {
998
- }
999
- getClientBounds_1() {
1000
- }
1001
- onPostKeyEvent() {
1002
- }
1003
- onPostCharEvent() {
1004
- }
1005
- OnSetGetSuggestedValueOfChoiceControlOnTagData() {
1006
- }
1007
- onSendImeMsg() {
1008
- }
1009
- onSetCursor() {
1010
- }
1011
- invokeRequired() {
1012
- return false;
1013
- }
1014
- onGetLastWindowState() {
1015
- }
1016
- onGetLinkedParentIdx() {
1017
- }
1018
- onGetColumnsState() {
1019
- }
1020
- onCanFocus() {
1021
- }
1022
- OnGetSelectedIndice() {
1023
- }
1024
- OnGetHasIndent() {
1025
- }
1026
- MapWidget_1() {
1027
- }
1028
- OnGetDVControlPositionIsn() {
1029
- }
1030
- OnActivateForm() {
1031
- }
1032
- OnIsComboDroppedDowndState() {
1033
- }
1034
796
  }
1035
- GuiInteractiveBase.lockObject = null;
1036
797
  class GuiInteractive extends GuiInteractiveBase {
1037
- OnGetRtfValueBeforeEnteringControl() {
1038
- }
1039
- onGetBrowserText() {
1040
- }
1041
- onBrowserExecute() {
1042
- }
1043
- onDirectoryDialogBox() {
1044
- }
1045
798
  constructor() {
1046
799
  super();
1047
800
  }
@@ -1684,18 +1437,6 @@ class Commands {
1684
1437
  let guiInteractive = new GuiInteractive();
1685
1438
  return guiInteractive.getIsRowEditing(tablecontrol, rowIndex, isLineMode);
1686
1439
  }
1687
- static browserExecute(browserControl, text, syncExec, language) {
1688
- let guiInteractive = new GuiInteractive();
1689
- return guiInteractive.browserExecute(browserControl, text, syncExec, language);
1690
- }
1691
- static directoryDialogBox(caption, path, bShowNewFolder) {
1692
- let guiInteractive = new GuiInteractive();
1693
- return guiInteractive.directoryDialogBox(caption, path, bShowNewFolder);
1694
- }
1695
- static fileOpenDialogBox(title, dirName, fileName, filterNames, checkExists, multiSelect) {
1696
- let guiInteractive = new GuiInteractive();
1697
- return guiInteractive.fileOpenDialogBox(title, dirName, fileName, filterNames, checkExists, multiSelect);
1698
- }
1699
1440
  static setEditText(control, line, text) {
1700
1441
  let guiInteractive = new GuiInteractive();
1701
1442
  return guiInteractive.setEditText(control, line, text);
@@ -15759,23 +15500,11 @@ class GuiExpressionEvaluator {
15759
15500
  IsParallel() {
15760
15501
  return false;
15761
15502
  }
15762
- eval_op_browserExecute_DO(resVal, controlName, text, sync, language) {
15763
- resVal.Attr = StorageAttribute.BOOLEAN;
15764
- resVal.BoolVal = false;
15765
- let form = this.ExpTask.getForm();
15766
- let sCtrlName = StrUtil.rtrim(controlName.StrVal);
15767
- let control = this.ExpTask.getForm().GetCtrl(sCtrlName);
15768
- if (control !== null && control.isBrowserControl()) {
15769
- resVal.BoolVal = Commands.browserExecute(control, text.StrVal, sync.BoolVal, language);
15770
- }
15771
- }
15772
15503
  eval_op_ctrl_name(resVal) {
15773
15504
  let lastClickedCtrlName = Manager.GetCurrentRuntimeContext().LastClickedCtrlName;
15774
15505
  resVal.StrVal = (NString.IsNullOrEmpty(lastClickedCtrlName) ? '' : lastClickedCtrlName);
15775
15506
  resVal.Attr = StorageAttribute.ALPHA;
15776
15507
  }
15777
- eval_op_formStateClear(formName, resVal) {
15778
- }
15779
15508
  eval_op_gotoCtrl(ctrlName, rowNum, generation, retVal) {
15780
15509
  retVal.Attr = StorageAttribute.BOOLEAN;
15781
15510
  retVal.BoolVal = false;
@@ -15934,19 +15663,6 @@ class GuiExpressionEvaluator {
15934
15663
  }
15935
15664
  }
15936
15665
  }
15937
- eval_op_win_help(expFilePath, expHelpCmd, expHelpKey, resVal) {
15938
- let filePath = expFilePath.StrVal;
15939
- let helpCmd = expHelpCmd.MgNumVal.NUM_2_LONG();
15940
- let helpKey = expHelpKey.StrVal;
15941
- resVal.Attr = StorageAttribute.BOOLEAN;
15942
- try {
15943
- Manager.ShowWindowHelp(filePath, helpCmd, helpKey);
15944
- resVal.BoolVal = true;
15945
- }
15946
- catch (ex) {
15947
- resVal.BoolVal = false;
15948
- }
15949
- }
15950
15666
  ConvertExpVal(val, expectedType) {
15951
15667
  if (StorageAttributeCheck.StorageFldAlphaUnicodeOrBlob(val.Attr, expectedType)) {
15952
15668
  this.BlobStringConversion(val, expectedType);