Revision: 4424
          http://vexi.svn.sourceforge.net/vexi/?rev=4424&view=rev
Author:   clrg
Date:     2012-07-17 00:39:52 +0000 (Tue, 17 Jul 2012)
Log Message:
-----------
Add mirroring textfield to text demo

Modified Paths:
--------------
    trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/text.t

Modified: trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/text.t
===================================================================
--- trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/text.t      
2012-07-17 00:39:00 UTC (rev 4423)
+++ trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/text.t      
2012-07-17 00:39:52 UTC (rev 4424)
@@ -9,7 +9,7 @@
         <ui:box vshrink="true">
             <ui:box width="3" shrink="true" />
             <ui:box shrink="true" text="Textfield: " />
-            <textfield id="textfield" align="center" marginleft="5" text="Edit 
this textfield!" />
+            <textfield id="textfield" marginleft="5" text="Edit this 
textfield!" />
             <ui:box text=" fontsize: " shrink="true" />
             <!--spin id="setfs" align="center" minvalue="10" maxvalue="24" 
shrink="true" /-->
             <option id="setfs" width="80">
@@ -25,6 +25,11 @@
             $setfs.value = $textfield.fontsize;
             $setfs.value ++= function(v) { $textfield.fontsize = v; cascade = 
v; }
         </ui:box>
+        <ui:box vshrink="true">
+            <ui:box width="3" shrink="true" />
+            <ui:box shrink="true" text="Mirrored: " />
+            <textfield id="mirror" enabled="false" marginleft="5" text="This 
textfield will mirror the one above" />
+        </ui:box>
         <ui:box height="5" vshrink="true" />
         <ui:box vshrink="true">
             <ui:box width="3" shrink="true" />
@@ -69,6 +74,7 @@
         }
         
         $textarea.text ++= function(v) { cascade = v; $label.text = v; }
+        $textfield.value ++= function(v) { cascade = v; $mirror.text = v; }
         
         $clear.action ++= function(v) { $textarea.text = ""; return; }
         $expose.action ++= function(v) { $value.text = $passfield.value; 
return; }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to