3 <import name="org.xwt.builtin.*"/>
4 <template thisbox="frame" minwidth="397" maxwidth="397" minheight="243" maxheight="243"
5 vpad="20" hpad="10" titlebar="Enter Network Password">
7 _KeyPressed = function(k) {
9 if ($password.focused) $user.focused = true;
10 else $password.focused = true;
11 } else if (k == "enter") {
16 $cancel._click = function() { thisbox = null; }
18 $user._focused = function(f) {
19 xwt.println("user.focused = " + f);
20 if (f) $password.focused = false;
23 $password._focused = function(f) {
24 xwt.println("password.focused = " + f);
25 if (f) $user.focused = false;
28 _proxyIP = function(p) { $firewall.text = p; }
29 _realm = function(r) { $realm.text = r; }
30 $user._SizeChange = function() { $password.height = $user.height; }
32 $ok._click = function() {
33 xwt.proxyAuthorization = $user.text + ":" + $password.text;
40 <box sizetoimage="true" image="key" align="topleft"/>
45 <box orient="vertical">
46 <box font="dialog8" text="Please type your user name and password." vshrink="true"/>
49 <box width="75" font="dialog8" text="Firewall:" vshrink="true"/>
50 <box vshrink="true" font="dialog8" text="unknown" id="firewall"/>
54 <box width="75" font="dialog8" text="Realm" vshrink="true"/>
55 <box vshrink="true" font="dialog8" text="unknown" id="realm"/>
59 <box width="75" font="dialog8" text="User Name" vshrink="true"/>
60 <box border="bevel_2_down" hpad="2" vpad="2">
61 <edit color="white" id="user" focused="true"/>
66 <box width="75" font="dialog8" text="Password" vshrink="true"/>
67 <box border="bevel_2_down" hpad="2" vpad="2">
68 <edit color="white" id="password" font="org.xwt.builtin.password12" focused="false"/>
74 <button width="75" height="24" id="ok">
75 <box font="dialog8" text="OK" shrink="true"/>
78 <button width="75" height="24" id="cancel">
79 <box font="dialog8" text="Cancel" shrink="true"/>