Revision: 4684 http://sourceforge.net/p/vexi/code/4684 Author: mkpg2 Date: 2014-04-04 16:07:43 +0000 (Fri, 04 Apr 2014) Log Message: ----------- Fix. Should not be able to select tab item from dropdown when the tab has been disabled.
Modified Paths: -------------- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/lib/tablist.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/tabs.t Modified: branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/lib/tablist.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/lib/tablist.t 2014-03-25 19:53:58 UTC (rev 4683) +++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/lib/tablist.t 2014-04-04 16:07:43 UTC (rev 4684) @@ -82,6 +82,9 @@ cascade = v; trapee.value = null; trapee.th_arrow.fill = .image.arrowup; + for(var i,c in trapee){ + c.enabled = c.value.v_tab.enabled; + } } /** change button on popdown */ Modified: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/tabs.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/tabs.t 2014-03-25 19:53:58 UTC (rev 4683) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/tabs.t 2014-04-04 16:07:43 UTC (rev 4684) @@ -4,7 +4,7 @@ <surface /> <ui:box> <tabpane> - <ui:box orient="vertical" tabtext="Options"> + <ui:box orient="vertical" tabtext="Options" id="options"> <option> <item text="Alpha" /> <item text="Beti" /> @@ -15,12 +15,29 @@ <item text="Brocoli" /> <item text="Cabbage" /> </combo> - <button tooltip="testing 123" /> + <button text="Disable Other Tabs" id="disable"/> </ui:box> for (var i=0; 10>i; i++) { thisbox[numchildren] = vexi.box; thisbox[numchildren-1].tabtext = "Test Tab "+i; } + + $disable.action ++= function(v){ + cascade = v; + var disable = $disable.text=="Disable Other Tabs"; + if(disable){ + $disable.text="Enable Other Tabs"; + + }else{ + $disable.text="Disable Other Tabs"; + } + for(var i,c in thisbox){ + if(c==$options) continue; + trace(c?.v_tab.text); + c.v_tab.enabled = !disable; + } + }; + </tabpane> vexi.ui.frame = thisbox; </ui:box> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn