1 <!-- Copyleft 2004 - see COPYING for details [LGPL] -->
5 Author: Charles Goodwin
15 th_content ++= function(v) {
16 v.childadded ++= function(c) {
17 // create the tab if needed
19 if (!c.tab) c.tab = ibex..ibex.widget.tab(ibex.box);
21 if (!tabgroup) tabgroup = c.tab.group;
22 else c.tab.group = tabgroup;
24 c.tab.selected ++= function(s) {
26 if (c.tab.selected and !c.visible) th_content.show = c;
29 c.tab.text = c.tabtext;
31 c.tabtext ++= function(t) {
37 th_head[v.indexof(c)] = c.tab;
40 v.show ++= function(c) {
42 if (c.visible and !c.tab.selected) c.tab.selected = true;
45 th_content --= callee;