Revision: 1905
          http://svn.sourceforge.net/vexi/?rev=1905&view=rev
Author:   clrg
Date:     2007-07-02 09:35:08 -0700 (Mon, 02 Jul 2007)

Log Message:
-----------
More vexi3 related fixes - mostly missing cascades

Modified Paths:
--------------
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/submenu.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/submenu.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/submenu.t    
2007-07-02 16:16:44 UTC (rev 1904)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/submenu.t    
2007-07-02 16:35:08 UTC (rev 1905)
@@ -59,6 +59,8 @@
                 th_content[arguments.index] = c;
                 lockChildren = false;
             }
+            
+            cascade = v;
         }
         
         // assign static trap functions
@@ -119,6 +121,7 @@
     /** set up popbox */
     static.popboxFunc = function(v)
     {
+        cascade = v;
         v.popgroup = "sublevel" + trapee.level;
         v.Press1 ++= vexi..org.vexi.lib.widget.menu..popboxPressFunc;
     }

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t    
2007-07-02 16:16:44 UTC (rev 1904)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t    
2007-07-02 16:35:08 UTC (rev 1905)
@@ -24,31 +24,28 @@
         /** sets up the close button */
         th_close ++= function(v)
         {
+            cascade = v;
             v.action ++= function(v) { show.thisbox = null; }
-            
-            // no longer need this trap
             th_close --= callee;
         }
         
         /** sets up the 'next' button */
         th_next ++= function(v)
         {
+            cascade = v;
             v.repeats = true;
             v.interval = 100;
             v.action ++= function(v) { th_head.x = vexi.math.max(th_head.x-10, 
th_headwrap.width-th_head.width); }
-            
-            // no longer need this trap
             th_next --= callee;
         }
         
         /** sets up the 'prev' button */
         th_prev ++= function(v)
         {
+            casacde = v;
             v.repeats = true;
             v.interval = 100;
             v.action ++= function(v) { th_head.x = vexi.math.min(th_head.x+10, 
0); }
-            
-            // no longer need this trap
             th_prev --= callee;
         }
         
@@ -88,9 +85,13 @@
                 }
                 
                 // place the tab
-                th_head[v.indexof(c)] = c.v_tab;
+                th_head[arguments.index] = c.v_tab;
+                
+                cascade = c;
             }
             
+            cascade = v;
+            
             /** drop tabs of exiting cards tabs *
             FIXME: reinstate
             v.ChildRemoved ++= function(c)

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t       
2007-07-02 16:16:44 UTC (rev 1904)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t       
2007-07-02 16:35:08 UTC (rev 1905)
@@ -34,6 +34,7 @@
     /** apply traps relating to th_content */
     static.contentFunc = function(v)
     {
+        cascade = v;
         trapee.enabled ++= static.enabledFunc;
         trapee.th_content --= static.contentFunc;
     }


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
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to