Revision: 4387
          http://vexi.svn.sourceforge.net/vexi/?rev=4387&view=rev
Author:   clrg
Date:     2012-05-20 22:11:51 +0000 (Sun, 20 May 2012)
Log Message:
-----------
Tweaks to createTab (mainly show new tab)

Modified Paths:
--------------
    trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/main.t
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/tabpane.t
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/tab.t

Modified: trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/main.t
===================================================================
--- trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/main.t      2012-05-19 
09:03:07 UTC (rev 4386)
+++ trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/main.t      2012-05-20 
22:11:51 UTC (rev 4387)
@@ -35,6 +35,15 @@
         
         $content.show ++= function(v) { cascade = v; surface.revertTitle(); }
         
+        var tabcounter = 0;
+        
+        $content.createTab = function() {
+            var b = vexi.box;
+            b.text = "Here is the tab you asked for!";
+            b.tabtext = "New tab "+(++tabcounter);
+            return b;
+        }
+        
         // create the window
         vexi.ui.frame = thisbox;
         

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/tabpane.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/tabpane.t  
2012-05-19 09:03:07 UTC (rev 4386)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/tabpane.t  
2012-05-20 22:11:51 UTC (rev 4387)
@@ -239,8 +239,11 @@
         thisbox.th_add ++= function(v) {
             cascade = v;
             v.action ++= function(v) {
-                if (createTab)
-                    thisbox.add(createTab());
+                if (createTab) {
+                    var newtab = createTab();
+                    thisbox.add(newtab);
+                    thisbox.show = newtab;
+                }
                 return;
             }
         }

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/tab.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/tab.t   
2012-05-19 09:03:07 UTC (rev 4386)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/tab.t   
2012-05-20 22:11:51 UTC (rev 4387)
@@ -60,6 +60,7 @@
     /** 'raise' when selected */
     static.selectWrite = function(v) {
         cascade = v;
+        trapee.cursor = v ? null : "hand";
         trapee.margintop = v ? 0 : 2;
         trapee.marginbottom = v ? 0 : 2;
         trapee.paddingtop = v ? 2 : 2;

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