summaryrefslogtreecommitdiff
path: root/swat.obsolete/esptest/registry.esp
blob: efdfefc37ebd65465d9d0419222220c7fcf3d261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<%
  page_header("columns", "ESP registry edit", "esptest"); 
%>

<script type="text/javascript" src="/scripting/client/encoder.js"></script>
<script type="text/javascript" src="/scripting/client/call.js"></script>
<script type="text/javascript" src="/scripting/client/regedit.js"></script>

<h1>Registry Editor</h1>

<script type="text/javascript">

/*** init the page for qooxdoo ***/
window.application.main = function()
{
    var doc = this.getClientWindow().getDocument();
    var inlineWidget = new QxInline;
    var qwidget = new QxWidget;
    qwidget.setHeight(800);
    qwidget.setWidth("100%");
    qwidget.setBorder(QxBorder.presets.groove);

    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:");
	    regWindow.add(regedit);
	    qwidget.add(regWindow);
	    regWindow.setVisible(true);

    });
    qwidget.add(btn1);
    inlineWidget.add(qwidget);
    doc.add(inlineWidget, "canvas");
}

</script>

<div id="canvas" style="overflow:hidden;position:static;margin-top:38px;margin-left:10px;margin-right:700px;width:700px"></div>

<% page_footer(); %>