oh!, good to hear that, when I read that I thought that like a limitation. Good to hear that I was wrong :)

On 7/4/06, n51red < [EMAIL PROTECTED]> wrote:


> I remember read a few days ago that these
> invisible components can't be styled.

I seems you've been mislead Carlos. Components like HBox and VBox are
invisible by default, but styles like backgroundColor do work.

Hank's suggestion about using nesting works well (see example), but
has implications for performance if it is used on a large number of
components.

Example code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical" horizontalAlign="center"
verticalAlign="middle">
<mx:Style>
Application{
backgroundColor:white;
color:black;
}
.boxStyle1{
borderStyle:"solid";
borderThickness:5;
borderColor:blue;
borderSides:bottom, left;
}
.boxStyle2{
borderStyle:"solid";
borderThickness:10;
borderColor:green;
borderSides:top, right;
}
</mx:Style>
<mx:VBox id="box"
styleName="boxStyle1"
height="50" width="150">
<mx:VBox height="100%" width="100%"
styleName="boxStyle2"/>
</mx:VBox>
</mx:Application>

--- In [email protected], "Carlos Rovira"

<[EMAIL PROTECTED]> wrote:
>
> Hank,
>
> In general visual containers can be styled, but we are talking
about Layout
> Containers (HBox, VBox,...), and I remember read a few days ago
that these
> invisible components can't be styled.
>
> On 7/4/06, hank williams <[EMAIL PROTECTED]> wrote:
> >
> > Containers can definitely be styled, but I am not sure that you
can
> > assign a different color to different sides. That might require
skinning.
> > You could use scale9 to do it. I know its not as easy as styles,
but I
> > *think* that may be your only option. You can turn off certain
sides and
> > turn on other sides, so perhaps you could do something with
layering, but
> > thats all I can think of.
> >
> > Hank
> >
> > On 7/4/06, Carlos Rovira <[EMAIL PROTECTED]> wrote:
> >
> > > AFAIK, containers for laying out other content can't be styled
> > >
> > >
> > >
> > >
> > > On 7/4/06, Jonas Windey < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi, is it possible to give a HBox different border colors
for each
> > > > side? Like border-right: solid 1px #ccc in css?
> > > >
> > > >
> > > >
> > > > Thanks!
> > > >
> > > >
> > >
> > >
> > > --
> > > ::| Carlos Rovira
> > > ::| http://www.carlosrovira.com
> > >
> >
> >
> >
>
>
>
> --
> ::| Carlos Rovira
> ::| http://www.carlosrovira.com
>




--
::| Carlos Rovira
::| http://www.carlosrovira.com __._,_.___

--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to