+++ /dev/null
-<xwt>
-
- <import name="org.xwt.builtin.*"/>
- <template thisbox="frame" minwidth="397" maxwidth="397" minheight="243" maxheight="243"
- vpad="20" hpad="10" titlebar="Enter Network Password">
-
- _KeyPressed = function(k) {
- if (k == "tab") {
- if ($password.focused) $user.focused = true;
- else $password.focused = true;
- } else if (k == "enter") {
- $ok.click = true;
- }
- }
-
- $cancel._click = function() { thisbox = null; }
-
- $user._focused = function(f) {
- xwt.println("user.focused = " + f);
- if (f) $password.focused = false;
- }
-
- $password._focused = function(f) {
- xwt.println("password.focused = " + f);
- if (f) $user.focused = false;
- }
-
- _proxyIP = function(p) { $firewall.text = p; }
- _realm = function(r) { $realm.text = r; }
- $user._SizeChange = function() { $password.height = $user.height; }
-
- $ok._click = function() {
- xwt.proxyAuthorization = $user.text + ":" + $password.text;
- thisbox = null;
- }
-
- <box hshrink="true">
- <box width="10"/>
- <box>
- <box sizetoimage="true" image="key" align="topleft"/>
- </box>
- <box width="10"/>
- </box>
-
- <box orient="vertical">
- <box font="dialog8" text="Please type your user name and password." vshrink="true"/>
- <box height="13"/>
- <box>
- <box width="75" font="dialog8" text="Firewall:" vshrink="true"/>
- <box vshrink="true" font="dialog8" text="unknown" id="firewall"/>
- </box>
- <box height="13"/>
- <box>
- <box width="75" font="dialog8" text="Realm" vshrink="true"/>
- <box vshrink="true" font="dialog8" text="unknown" id="realm"/>
- </box>
- <box height="22"/>
- <box>
- <box width="75" font="dialog8" text="User Name" vshrink="true"/>
- <box border="bevel_2_down" hpad="2" vpad="2">
- <edit color="white" id="user" focused="true"/>
- </box>
- </box>
- <box height="10"/>
- <box>
- <box width="75" font="dialog8" text="Password" vshrink="true"/>
- <box border="bevel_2_down" hpad="2" vpad="2">
- <edit color="white" id="password" font="org.xwt.builtin.password12" focused="false"/>
- </box>
- </box>
- <box height="30"/>
- <box>
- <box/>
- <button width="75" height="24" id="ok">
- <box font="dialog8" text="OK" shrink="true"/>
- </button>
- <box width="20"/>
- <button width="75" height="24" id="cancel">
- <box font="dialog8" text="Cancel" shrink="true"/>
- </button>
- </box>
- <box/>
- </box>
-
- </template>
-
-</xwt>
\ No newline at end of file