-- Tab test -- Code by mikshaw (http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi) ww=320 --window width wh=240 --window height function show2() if on2:takesevents() == 1 then on2:hide() tab2:deactivate() on1:label("unlock tab2") else tab2:activate() on2:show() on1:label("lock tab2") end end w=fltk:Fl_Window(ww,wh,"murgaLua Tabs Demo") tabs=fltk:Fl_Tabs(10,20,ww-20,wh-25,"Tabs") tab1 = fltk:Fl_Group(10,40,ww-20,wh-45,"Tab1") on1=fltk:Fl_Button(20,60,100,30,"unlock tab 2");on1:callback(show2) fltk:Fl_End() --end of tab1 group tab2 = fltk:Fl_Group(10,40,ww-20,wh-45,"Tab2") on2=fltk:Fl_Box(20,60,ww-40,wh-85);on2:box(fltk.FL_THIN_DOWN_BOX) on2:label("Congratulations!\nYou pressed a button!") fltk:Fl_End() tab2:deactivate() on2:hide() w:show() Fl:run()