[xul-interop] XUL Grand Coding Challenge 2004 - Counter Sample Showcase

thomas favennec <[email protected]> Sun, 11 Sep 2005 20:44:38 +0200
Newsgroups gmane.comp.lang.xul.general
Message-ID <001201c5b700$de8924e0$0100a8c0@Thomas>
Hi,

I would like to show you an example of what i've done with my Xmind project with classic theme.
Can you have a look ?

Thanks.

Thomas
http://xmind.redsofa.net



<xmind title="Xmind counter - XUL challenge 2004">
 <frame title="Counter">
  <tbox width="100%" span="2">
   <tr>
    <td>
     <label>Count:</label>
    </td>
    <td>
     <entry name="entry1" width="200">0</entry>
    </td>
   </tr>
   <tr>
    <td colspan="2">
     <tbox align="center" span="3">
      <tr>
       <td>
        <button onclick="Javascript:act(1)">Dec (-)</button>
       </td>
       <td>
        <button onclick="Javascript:act(2)">Clear</button>
       </td>
       <td>
        <button onclick="Javascript:act(3)">Inc (+)</button>
       </td>
      </tr>
     </tbox>
    </td>
   </tr>
  </tbox>
 </frame>
 <script>
 function act(n)
 {
  a=document.getElementById("entry1");
  if(n==1) a.value--;
  if(n==2) a.value=0;
  if(n==3) a.value++;
 }
 </script>
</xmind>
result.jpg (image/jpeg, 7.5 KB) - not displayed