Update Form Designer - FormDesignerFileSystem - Save Controls Count.
@@ -1270,11 +1270,11 @@ Class FormDesignerView from WindowsViewParent
Class FormDesignerModel
+ aManySelectedObjects = []
aObjectsList = []
nActiveObject = 0
- nLabelsCount = 0
nIDCounter = 0
- aManySelectedObjects = []
+ nLabelsCount = 0
nPushButtonsCount = 0
nLineEditsCount = 0
nTextEditsCount = 0
@@ -2144,5 +2144,43 @@ class FormDesignerFileSystem
SaveFormToFile(oDesigner)
func SaveFormToFile oDesigner
+ cContent = "
+ nIDCounter = #{f1}
+ nLabelsCount = #{f2}
+ nPushButtonsCount = #{f3}
+ nLineEditsCount = #{f4}
+ nTextEditsCount = #{f5}
+ nListWidgetsCount = #{f6}
+ nCheckBoxesCount = #{f7}
+ nImagesCount = #{f8}
+ nSlidersCount = #{f9}
+ nProgressbarsCount = #{f10}
+ nSpinBoxesCount = #{f11}
+ nComboBoxesCount = #{f12}
+ nDateTimeEditsCount = #{f13}
+ nTableWidgetsCount = #{f14}
+ nTreeWidgetsCount = #{f15}
+ nRadioButtonsCount = #{f16}
+ "
+ cContent = substr(cContent,"#{f1}" ,""+oDesigner.oModel.nIDCounter)
+ cContent = substr(cContent,"#{f2}" ,""+oDesigner.oModel.nLabelsCount)
+ cContent = substr(cContent,"#{f3}" ,""+oDesigner.oModel.nPushButtonsCount)
+ cContent = substr(cContent,"#{f4}" ,""+oDesigner.oModel.nLineEditsCount)
+ cContent = substr(cContent,"#{f5}" ,""+oDesigner.oModel.nTextEditsCount)
+ cContent = substr(cContent,"#{f6}" ,""+oDesigner.oModel.nListWidgetsCount)
+ cContent = substr(cContent,"#{f7}" ,""+oDesigner.oModel.nCheckBoxesCount)
+ cContent = substr(cContent,"#{f8}" ,""+oDesigner.oModel.nImagesCount)
+ cContent = substr(cContent,"#{f9}" ,""+oDesigner.oModel.nSlidersCount)
+ cContent = substr(cContent,"#{f10}",""+oDesigner.oModel.nProgressbarsCount)
+ cContent = substr(cContent,"#{f11}",""+oDesigner.oModel.nSpinBoxesCount)
+ cContent = substr(cContent,"#{f12}",""+oDesigner.oModel.nComboBoxesCount)
+ cContent = substr(cContent,"#{f13}",""+oDesigner.oModel.nDateTimeEditsCount)
+ cContent = substr(cContent,"#{f14}",""+oDesigner.oModel.nTableWidgetsCount)
+ cContent = substr(cContent,"#{f15}",""+oDesigner.oModel.nTreeWidgetsCount)
+ cContent = substr(cContent,"#{f16}",""+oDesigner.oModel.nRadioButtonsCount)
+
+ # Write the Form File
+ write(cFileName,cContent)
func LoadFormFromFile oDesigner
+
