home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / res / strres-test.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  3KB  |  68 lines

  1. <?xml version="1.0" encoding="UTF-8" ?> 
  2. <!-- DON'T localize: strres test cases -->
  3.  
  4.  
  5. <!DOCTYPE window> 
  6.     <!-- padding 0px is just a workaround for windows not displaying paddings correctly
  7.             take it out once this works! -->
  8.  
  9. <window style=" padding: 0px; width: 100%; height: 100%" 
  10.         xmlns:html="http://www.w3.org/1999/xhtml"
  11.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  12.         title="Open File or Location"
  13.         onload="onLoad()"
  14.         class="dialog"> 
  15.               
  16.     <html:script type="application/x-javascript" src="chrome://global/content/strres.js" />
  17.  
  18.     <!--html:script type="application/x-javascript" src="resource:/res/strres-test.js" charset="Shift_JIS" / -->
  19.     <html:script type="application/x-javascript" src="resource:/res/strres-test.js" />
  20.                    
  21.     <hbox flex="100%" style="width:30em;">
  22.                       
  23.         <html:div style="width: 45px; margin: 5px;">
  24.             <html:img src="chrome://navigator/skin/questionl.gif" width="32" height="32" border="0"/>
  25.         </html:div>
  26.  
  27.         <vbox flex="100%" style="height: 100%;">
  28.                   
  29.             <html:div style="width: 100%;">Enter the World Wide Web location (URL) you would like to open or 
  30.             </html:div>
  31.             <html:div style="width: 100%; margin-bottom: 0.5em;">use the Choose File... button to select a local file:
  32.             </html:div>
  33.            
  34.             <hbox>
  35.                 <html:input id="dialog.input" flex="100%" onkeyup="onTyping(event.keyCode)"/>
  36.                 <button onclick="choose()" label="Choose File..." align="left"/>
  37.                 </hbox>
  38.                               
  39.             <hbox style="margin-bottom: 1em;">
  40.                 <html:input type="checkbox" id="dialog.newWindow"/>
  41.                 <html:label for="dialog.newWindow">Open in new window</html:label>
  42.                 <spacer flex="100%"/> 
  43.             </hbox>
  44.             <hbox style="margin-bottom: 1em;">
  45.                 <spacer flex="100%"/>
  46.                 <html:label id = "labelPrompt">Strres Test: </html:label>
  47.                 <html:label id = "testLabel">to be set!!</html:label>
  48.                       
  49.                  <spacer flex="100%"/>
  50.             </hbox>
  51.  
  52.                <spacer flex="100%"/>
  53.                    
  54.             <hbox>
  55.                 <spacer flex="100%"/>
  56.                 <button id="dialog.ok" label="ok" onclick="open()" align="left"/>
  57.                 <button id="dialog.test" value="test" onclick="strresTest()" align="left"/>
  58.                 <button id="dialog.cancel" label="cancel: ??" onclick="cancel()" align="left"/>
  59.                 <spacer flex="100%"/>
  60.             </hbox>
  61.                      
  62.         </vbox>
  63.                     
  64.     </hbox>
  65.  
  66.          
  67.  </window>
  68.