I'm trying to have a regular button do the same thing as one of the tabbar buttons in the TabPanel I've created. When a tabbar button is tapped, the screen switches to a different 'card' and that button is highlighted. I want these same things to happen when the user taps a particular non-tabbar button. So on card 1 I've got a button docked to the bottom (just above the tabbar) and if this button is tapped I want the screen to animate to card 4 and the tabbar button #4 to become highlighted. I know its redundant to have a button that copies the functionality of a tabbar button, but that's the spec for this project.

Any help at all would be appreciated. I know how to create a handler for a control, but all I can do with it so far is change the text of a component, I don't know how to trigger events like this.

evant

7 Jul 2010, 7:32 AM

Specifically, what's the problem?

You can create a named function and use it for the handler for both buttons.

thebestusername

7 Jul 2010, 7:35 AM

I know how to create a handler function and attach it to the button, but I don't know how to replicate the events triggered by tapping a tabbar button. How do I trigger the switching to a different card in the Panel? How to I set a particular tabbar button as highlighted? Can this all be done in one step or does it require a series of event calls in the handler function?