I don't think its possible to set 2 styles to the same control. After looking at the code of TabNavigator I found that it has a member of tabBar and that this tabBar creates children of an inner class that are not exposed (mx.containers.tabclasses.Tab) since the tabBar creates these dynamicly I don't think setting a style to the navigator will affect these. What I don't understand is why setting a style to the child of the tabBar like so: myNavigator.tabBar.getChildAt(0).setStyle("corner-radius",1); doesn't work.
--- In flexcoders@yahoogroups.com, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote: > I was trying the same. > > Unfortunately, the attributes should be set for TabNavigator and Tab as > well. > I tried using the Macromedia Flex StyleExplorer to create my styles. > > Looks like corner-radius belongs to the *Tab *and not the *TabNavigator*. > My question is whether it is possible to set 2 styles to the same component! > > *MyTabNavigator *{ > tab-height: 30; > tab-width: 87; > border-color: #cccccc; > } > > *MyTab *{ > * corner-radius: 8;* > fill-colors: #003366, #f6eeee; > selected-fill-colors: #0033cc, #ffffff; > border-color: #000000; > color: #000000; > } > > Now, if I want to set the above *2 styles to one TabNavigator* only, how > do I go about doing it? > Am I missing anything here? > > Regards > Sree > > Matt Chotin wrote: > > > You could create a style that has all the settings but not name it for > > TabNavigator: > > > > > > > > MyTabStyle > > > > { > > > > corner-radius: ... > > > > } > > > > > > > > TabNavigator styleName="MyTabStyle" > > > > > > > > Matt > > > > ------------------------------------------------------------------------ > > > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] > > *On Behalf Of *zipo13 > > *Sent:* Monday, July 25, 2005 6:56 AM > > *To:* flexcoders@yahoogroups.com > > *Subject:* [flexcoders] TabNavigator tabs style > > > > > > > > Hi, > > In the flex Style explorer I can see that Tab styles can be set via CSS. > > http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html (tabs > > section) > > The style I'm interested at is "corner-radius". I have manged to set > > the style via CSS to my app but I want it for only one TabNavigator > > and not the other. I tried several ways to set this style via AS code > > but nothing seems to work. I tried to set the style to the > > TabNavigator the tabBar child of the TabNavigator or the children > > Tab's of the tabBar. > > > > Anyone knows what else can I try? > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > > > > > SPONSORED LINKS > > Computer software testing > > <http://groups.yahoo.com/gads?t=ms&k=Computer+software+testing&w1=Computer+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.sig=kh2CguJwmatU5oBXjFo9Rg> > > Macromedia flex > > <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Computer+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.sig=dAUcEV7do91-wrRtVS641g> > > Development > > <http://groups.yahoo.com/gads?t=ms&k=Development&w1=Computer+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.sig=AlxNUQBOI7Io7S7nhmxV0Q> > > > > Software developer > > <http://groups.yahoo.com/gads?t=ms&k=Software+developer&w1=Computer+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.sig=QWIit8JayomoIHLVkV3FDg> > > > > > > > > ------------------------------------------------------------------------ > > YAHOO! GROUPS LINKS > > > > * Visit your group "flexcoders > > <http://groups.yahoo.com/group/flexcoders>" on the web. > > > > * To unsubscribe from this group, send an email to: > > [EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]> > > > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > > Service <http://docs.yahoo.com/info/terms/>. > > > > > > ------------------------------------------------------------------------ > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/