Update Form Designer - Save/Restore Menubar Property.
@@ -2551,6 +2551,7 @@ class FormDesigner_QWidget from QWidget
case 9 # Menubar
open_window(:MenubarDesignerController)
Last_Window().setParentObject(oDesigner)
+ Last_Window().setMenubar(MenubarValue())
}
func MousePressAction oDesigner
@@ -7945,9 +7946,6 @@ class MenubarDesignerController from windowsControllerParent
# Object-Text-Image-ShortCut-Action
aTreeItems = [[oRoot.pObject,"The Menubar","","",""]]
- # Menubar String (Input/Output)
- cMenuString = ""
-
// String2Tree( MenuStringforTest() )
func NewAction
@@ -8045,7 +8043,7 @@ class MenubarDesignerController from windowsControllerParent
aTreeItems[nPos][5] = cText
func CloseAction
- cMenuString = Tree2String()
+ parent().oModel.FormObject().setMenubarValue(Tree2String())
oView.Close()
func Tree2String
@@ -8117,3 +8115,6 @@ class MenubarDesignerController from windowsControllerParent
:Children = [] ]] ]] ]
`
return cMenu
+
+ func SetMenubar cMenu
+ String2Tree(cMenu)
