r9635: Seperate window logic from registry js file.
[ira/wip.git] / swat / esptest / registry.esp
index b65b5d1b24b2e29e89410cb78fd74cf56c1c0410..efdfefc37ebd65465d9d0419222220c7fcf3d261 100644 (file)
@@ -23,9 +23,20 @@ window.application.main = function()
     var btn1 = new QxButton("Registry Editor");
     btn1.set({ top: 20, left : 30 });
     btn1.addEventListener("click", function() {
+            var regWindow = new QxWindow("Registry Editor");
+           with(regWindow) {
+                setTop(50);
+               setLeft(50);
+                setMinWidth(600);
+               setMinHeight(600);
+               setResizeMethod("frame");
+           }
+
            var regedit = regedit_widget("ncalrpc:");
-           qwidget.add(regedit);
-           regedit.startup();
+           regWindow.add(regedit);
+           qwidget.add(regWindow);
+           regWindow.setVisible(true);
+
     });
     qwidget.add(btn1);
     inlineWidget.add(qwidget);