PDA

View Full Version : depressing all tabs in a tabBar component


Assertnfailure
11-22-2006, 05:34 PM
Hey....Here's a question:

I have a tabBar for a viewstack, and since I don't specify a selectedIndex in the beginning, all the tabs start out depressed. When I run a trace on the selectedIndex of the tabBar, it returns -1. If I click on a tab, of course the selectedIndex changes to some value from 0 to n-1 based on the tab, but when I try to set the selectedIndex back to -1, it still leaves the last tab depressed.

How do I depress all the tabs?

Tink
11-23-2006, 11:12 AM
have u tried null?

or maybe try setting toggleOnClick to true before u set the index to -1