I gave it a try when it was
posted, indeed setStyle("corner-radius",1)
doesn't work but setStyle("color",0xFF0000) does ?!
You would expect that it would apply the
style to the first tab but it does for all of them .. no clue ... I was
trying with the TabBar, I see now that you are talking about
TabNavigator, I didn't try.
Philippe
Maegerman
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 [email protected], 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:* [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
> >
> >
> >
> > 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/>.
> >
> >
> >
------------------------------------------------------------------------
> >
------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**
This e-mail and any attached files are
confidential and intended solely for the use of the individual to whom
it is addressed. If you have received this email in error please send
it back to the person that sent it to you. Any views or opinions
presented are solely those of author and do not necessarily represent
those the Emakina Company. Unauthorized publication, use,
dissemination, forwarding, printing or copying of this email and its
associated attachments is strictly prohibited.
We also inform you that we have
checked that this message does not contain any virus but we decline any
responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------