Update Form Designer - Duplicate() Method - Add comments.
@@ -1079,10 +1079,13 @@ class FormDesignerController from WindowsControllerParent
Super.CloseAction()
func Duplicate
+ # Selected objects - if we have many objects selected
aObjects = oModel.GetSelectedObjects()
+ # Support duplication of one selected object
if len(aObjects) = 0 and not oModel.IsFormActive() {
aObjects = oModel.ActiveObjectItemAsList()
}
+ # Display messagebox if not objects are selected
if len(aObjects) = 0 {
new qmessagebox(oView.win)
{
@@ -1094,6 +1097,7 @@ class FormDesignerController from WindowsControllerParent
}
return
}
+ # Duplication of selected objects
cCode = oFile.Objects2String(self,aObjects)
eval(cCode)
# Update Name and Position
