Hi - I’m using the widget library to create a tab bar, all working nicely, but I need to use the function ‘pressButton’ documented here http://developer.anscamobile.com/reference/index/widgetnewtabbar
The thing is, I get an error “attempt to call method ‘pressButton’ (a nil value)” when I call the function.
My code snippet:
tabBar = widget.newTabBar{
top=GtbDims.top, – my tab bar top y value
buttons=tabButtons – table storing the tab bar
}
tabBar:pressButton(1)
It all works fine, tabs working etc, but the call to pressButton always gives that error. Have I done something stupid, or does the function not exist?
Thanks! [import]uid: 93610 topic_id: 18520 reply_id: 318520[/import]
[import]uid: 52430 topic_id: 18520 reply_id: 71039[/import]
[import]uid: 93610 topic_id: 18520 reply_id: 71043[/import]