Update Form Designer - FormDesigner_QWidget - GetProperties() Method to return the properties list.
@@ -26,8 +26,8 @@ Class FormDesignerController from WindowsControllerParent
func Start
oView.win.Show()
oModel.AddObject("Window",oView.oForm)
- AddObjectsToCombo()
oActiveObject = oView.oForm
+ AddObjectsToCombo()
AddObjectProperties()
DisplayObjectProperties()
@@ -38,11 +38,7 @@ Class FormDesignerController from WindowsControllerParent
}
func AddObjectProperties
- cClass = classname(oActiveObject)
- switch cClass {
- case "formdesigner_qwidget"
- aProperties = ["X","Y","Width","Height","Title","Back Color"]
- }
+ aProperties = oActiveObject.GetPropertiesList()
for Item in aProperties {
oView.AddProperty(Item)
}
@@ -369,6 +365,9 @@ class FormDesigner_QWidget from QWidget
func setSubWindow oObject
oSubWindow = oObject
+ func GetPropertiesList
+ return ["X","Y","Width","Height","Title","Back Color"]
+
func UpdateProperties nRow,cValue
switch nRow {
case 0 # x
