Hey
If I create a tabBar like below and all the settings are stored in a separate lua-module which I prefer to to but now I need to update the textlabels in the tabbar from within code and how to I get a hold on each tabbar buttons label text?
[lua]local tabButtons = {
{ label=“tab1”, up=app.tabBar1Up, down=app.tabBar1Down, width = app.tabBar1Width, height = app.tabBar1Height, onPress=onFirstView, selected=app.tabBar1Selected },
{ label=“tab2”, up=app.tabBar2Up, down=app.tabBar2Down, width = app.tabBar2Width, height = app.tabBar2Height, onPress=onSecondView, selected=app.tabBar2Selected },
{ label=“tab3”, up=app.tabBar3Up, down=app.tabBar3Down, width = app.tabBar3Width, height = app.tabBar3Height, onPress=onThirdView, selected=app.tabBar3Selected },
{ label=“tab4”, up=app.tabBar4Up, down=app.tabBar4Down, width = app.tabBar4Width, height = app.tabBar4Height, onPress=onFourthView, selected=app.tabBar4Selected },
}
tabBar = widget.newTabBar{
top = display.contentHeight - 50, – 50 is default height for tabBar widget
buttons = tabButtons
}[/lua]
Any help would be appreciated? [import]uid: 22737 topic_id: 21119 reply_id: 321119[/import]