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: [email protected] [mailto:[email protected]] On Behalf Of zipo13
Sent: Monday, July 25, 2005 6:56 AM
To: [email protected]
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




YAHOO! GROUPS LINKS




Reply via email to