View Full Version : bgcolor and fgcolor are "write only"?
I wanted to set the bgcolor of one view to be the same as another (actually, I wanted it to follow changes, using bgcolor="${other.bgcolor}"), but the debugger tells me that bgcolor is undefined? Same seems to apply to fgcolor. How can I find the background and forground colors of a view?
I was thinking that bgcolor would cascade, but it does not. If I want to get the 'cascaded' value of bgcolor, I need to use:
this.searchImmediateParents('bgcolor').bgcolor
DanMurphy
06-15-2005, 05:43 AM
I'm having a similar problem. Although I do seem to be able to find the background color, I can't find the foreground color.
lwz7512
06-15-2005, 05:03 PM
<canvas debug="true">
<view name="lord" width="10" height="10" bgcolor="green"/>
<view width="10" height="10" bgcolor="${lord.getAttribute('bgcolor')}"/>
<simplelayout axis="y" spacing="10"/>
</canvas>
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.