summaryrefslogtreecommitdiff
path: root/swat/esptest
diff options
context:
space:
mode:
authorDeryck Hodge <deryck@samba.org>2005-08-26 05:25:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:34:36 -0500
commitc6b592a5b79bd8449a675012192c5654ddc4442c (patch)
treeb7f193ddd8d393133ffba26aed91728422c5008f /swat/esptest
parenta45c4fd5e24c8ae50bd86c6c84d1a3278e1bdab6 (diff)
downloadsamba-c6b592a5b79bd8449a675012192c5654ddc4442c.tar.gz
samba-c6b592a5b79bd8449a675012192c5654ddc4442c.tar.bz2
samba-c6b592a5b79bd8449a675012192c5654ddc4442c.zip
r9635: Seperate window logic from registry js file.
This allows for flexibility in display format, which will make more sense when I start working on windows, tabs, etc. Add the beginnings of a document.js object that allows us to add and remove scripts as we use them, which will ensure we only load what we need. A desktop GUI runs from a single page, so we can't load js files by changing pages. deryck (This used to be commit b4f6f81d7bbf87fcb7c7c9bd4a7164aabaeedc1c)
Diffstat (limited to 'swat/esptest')
-rw-r--r--swat/esptest/registry.esp15
1 files changed, 13 insertions, 2 deletions
diff --git a/swat/esptest/registry.esp b/swat/esptest/registry.esp
index b65b5d1b24..efdfefc37e 100644
--- a/swat/esptest/registry.esp
+++ b/swat/esptest/registry.esp
@@ -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);