Nevermind.. got it..
setStyle("headerColors", [0xFFFFFF,0x94FA6A]);


--- In flexcoders@yahoogroups.com, "stevenkeys2003" <[EMAIL PROTECTED]> 
wrote:
> How would you programatically change headerColors and footerColors?
> Need some examples... I'm assuming it involves setStyle somehow?
> 
> Thx,
> -Steve
> 
> --- In flexcoders@yahoogroups.com, "jwc_wensan" <[EMAIL PROTECTED]> 
> wrote:
> > Andrew:
> > 
> > Yes, I was using the headerColors attribute and was placing it 
in 
> > the CSS file.
> > 
> > Since the ControlBar was/is a separate control, I did not think 
of 
> it
> > as the footer of the Panel, even though, it actually is 
displayed 
> > that way.
> > 
> > This works.
> > 
> > Thanks for the help.
> > 
> > Jack
> > 
> > --- In flexcoders@yahoogroups.com, "Andrew Spaulding" 
> <[EMAIL PROTECTED]> 
> > wrote:
> > > I assume you used the headerColors attribute on the panel to 
> change
> > > the header colours. The Panel component also has a 
footerColors 
> > style.
> > > The footerColors style is an array of two colours used to the 
> draw
> > > footer background (the area for the ControlBar).
> > > 
> > > use it like this:
> > > 
> > > <mx:Panel width="100%" height="100%"
> > >    headerColors="[#444444, #FFFFFF]" footerColors="[#FFFFFF, 
> > #444444]" >
> > > <mx:ControlBar />
> > > </mx:Panel>
> > > 
> > > You can also use the footer-colours and header-colors tag in 
> your 
> > css
> > > style declarations.
> > > 
> > > Cheers,
> > > 
> > > Andrew Spaulding
> > > www.flexdaddy.info
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "jwc_wensan" 
> <[EMAIL PROTECTED]> 
> > wrote:
> > > > Good Afternoon:
> > > > 
> > > > In my code I have changed the "headerColor" of the Panel and 
> want
> > > > to change the ControlBar background color to match.
> > > > 
> > > > I changed the background color to match, but it did not work.
> > > > 
> > > > I then read this from livedocs:
> > > > 
> > > > ********
> > > > The <mx:ControlBar> container inherits all the properties of 
> its 
> > > > parent classes.  Note: Although the ControlBar container 
> > inherits 
> > > > the borderStyle, backgroundColor, and backgroundImage styles 
> > from 
> > > > the HBox container, you cannot set them. 
> > > > *********
> > > > 
> > > > Does this mean we are stuck with the Flex default background 
> > color
> > > > for the ControlBar?
> > > > 
> > > > Is there a workaround?
> > > > 
> > > > Thanks,
> > > > 
> > > > Jack




--
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/
 



Reply via email to