Revision: 1939
          http://svn.sourceforge.net/vexi/?rev=1939&view=rev
Author:   clrg
Date:     2007-07-07 09:02:56 -0700 (Sat, 07 Jul 2007)

Log Message:
-----------
Open with the text demo and nicer labelled tabs

Modified Paths:
--------------
    widgets/trunk/org.vexi.demo/org/vexi/demo/demoTabs.t
    widgets/trunk/org.vexi.demo/org/vexi/demo/text.t

Modified: widgets/trunk/org.vexi.demo/org/vexi/demo/demoTabs.t
===================================================================
--- widgets/trunk/org.vexi.demo/org/vexi/demo/demoTabs.t        2007-07-07 
15:45:48 UTC (rev 1938)
+++ widgets/trunk/org.vexi.demo/org/vexi/demo/demoTabs.t        2007-07-07 
16:02:56 UTC (rev 1939)
@@ -7,13 +7,12 @@
     
     <widget:tabpane displayCloseButton="true" >
         // load this one normally as it's is shown by default
-        <basic tabtext="Basic Widgets" />
+        <text tabtext="Text Widgets" />
         
         // load the rest on-request to boost startup speed
+        <util:lazyload src=".basic" tabtext="Basic Widgets" />
         <util:lazyload src=".other" tabtext="Misc Widgets" />
-        <util:lazyload src=".table" tabtext="Table 1" />
-        <util:lazyload src=".dynamictable" tabtext="Table 2" />
-        <util:lazyload src=".text" tabtext="Text" />
+        <util:lazyload src=".dynamictable" tabtext="Large Tables" />
         
         thisbox.openTab = function(tabtext)
         {

Modified: widgets/trunk/org.vexi.demo/org/vexi/demo/text.t
===================================================================
--- widgets/trunk/org.vexi.demo/org/vexi/demo/text.t    2007-07-07 15:45:48 UTC 
(rev 1938)
+++ widgets/trunk/org.vexi.demo/org/vexi/demo/text.t    2007-07-07 16:02:56 UTC 
(rev 1939)
@@ -7,21 +7,17 @@
         <ui:box vshrink="true">
             <ui:box width="3" shrink="true" />
             <ui:box align="right" shrink="true" text="Textfield: " />
-            <ui:box>
-                <textfield id="textfield" marginleft="5" text="Edit this 
textfield!" />
-                <button id="enable" marginleft="10" text="Enable" />
-            </ui:box>
+            <textfield id="textfield" marginleft="5" text="Edit this 
textfield!" />
+            <button id="enable" marginleft="10" text="Enable" />
         </ui:box>
         <ui:box height="5" vshrink="true" />
         <ui:box vshrink="true">
             <ui:box width="3" shrink="true" />
             <ui:box align="right" shrink="true" text="Passfield: " />
-            <ui:box>
-                <textfield id="passfield" margin="3 5" password="true" />
-                <ui:box shrink="true" text="Password: " />
-                <ui:box id="value" align="left" />
-                <button id="expose" marginleft="10" text="Expose Value" />
-            </ui:box>
+            <textfield id="passfield" margin="3 5" password="true" />
+            <ui:box align="left" shrink="true" text="Password: " />
+            <ui:box id="value" align="left" />
+            <button id="expose" marginleft="10" text="Expose Value" />
         </ui:box>
         <separator margin="8 3" />
         <ui:box>
@@ -31,7 +27,7 @@
                     <ui:box text="Textarea:" align="left" />
                     <button id="clear" text="Clear" />
                 </ui:box>
-                <ui:box height="5" />
+                <ui:box height="5" vshrink="true" />
                 <textarea id="textarea" text="This is an editable textarea in 
which text will wrap and can contain linebreaks" />
             </ui:box>
             <separator orient="vertical" margin="3 8" />
@@ -41,7 +37,7 @@
                     <ui:box text="Label:" align="left" />
                     <button id="transfer" text="Transfer" />
                 </ui:box>
-                <ui:box height="5" />
+                <ui:box height="5" vshrink="true" />
                 <scrollpane autohidehorizontal="true" autohidevertical="true" 
margin="3" padding="3">
                     <label id="label" multiline="true" text="Press the 
transfer button to copy text from the textarea into this multiline label 
widget" />
                 </scrollpane>
@@ -55,11 +51,12 @@
             enable_state = !enable_state;
             $enable.text = enable_state ? "Enable" : "Disable";
             $textfield.enabled = enable_state;
+            return;
         }
         
-        $clear.action ++= function(v) { $textarea.text = ""; }
-        $expose.action ++= function(v) { $value.text = $passfield.value; }
-        $transfer.action ++= function(v) { $label.text = $textarea.text; }
+        $clear.action ++= function(v) { $textarea.text = ""; return; }
+        $expose.action ++= function(v) { $value.text = $passfield.value; 
return; }
+        $transfer.action ++= function(v) { $label.text = $textarea.text; 
return; }
         
     </pad>
 </vexi>


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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to