[flexcoders] programatically change headerColors? Re: Control Bar Background Color
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=[#44, #FF] footerColors=[#FF, #44] 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/
[flexcoders] programatically change headerColors? Re: Control Bar Background Color
Hi Steve, Yep, you're on the right track, it does involve use of the setStyle method. Use the following to retrieve the current settings if need be - myPanel.getStyle('headerColor'); Setting the header colours requires an array, so it would be done like this - myPanel.setStyle('headerColors',[0xFF,0xFF]); The same concept applies to all other styles. Hope this helps! Andrew Spaulding www.flexdaddy.info --- 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=[#44, #FF] footerColors=[#FF, #44] 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/
[flexcoders] programatically change headerColors? Re: Control Bar Background Color
Nevermind.. got it.. setStyle(headerColors, [0xFF,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=[#44, #FF] footerColors=[#FF, #44] 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/