Skip navigation
ajscilingo1
Currently Being Moderated

Spark ButtonBar\ToggleButton Setting BorderColor?

Oct 15, 2010 9:49 AM

Hi, I'm sort of new to Flex.  For the past few months I have been using the older mx components but now as I see the way forward is spark components (unless there isn't an equivalent to an mx component) I'd like to start using them.  I've implemented a spark ButtonBar in my application, I was able to figure out that you can style the default skin by using chromeColor, color, font-size, font-weight, etc.  I'm really not looking to do anything fancy at the moment so I figured it was unnecessary to create a custom skin.  Now, I've been looking high and low for anyway to change the color of the border surrounding the ButtonBar control and I'm getting no where with it.  I was wondering if you guys could point me in the right direction.

 

Here are the current styles that I'm using on my ButtonBar,  I'd like the border color on the ButtonBar (or ToggleButton??)  to be set to a grayish color like  #E3F4FF, instead of the default black.  Thanks

 

        /* Spark Control Styles Here */
       
        s|ButtonBar s|ToggleButton:upAndSelected,
        s|ButtonBar s|ToggleButton:downAndSelected,
        s|ButtonBar s|ToggleButton:disabledAndSelected
        s|ButtonBar s|ToggleButton:down
        {
            chromeColor: #9BD8FF;
            color: #000000;
            font-size:10;
            font-weight:bold;
        }
       
        s|ButtonBar s|ToggleButton:overAndSelected,
        s|ButtonBar s|ToggleButton:over
        {
            chromeColor: #E3F4FF;
            color: #000000;
            font-size:10;
            font-weight:bold;
        }
       
        s|ButtonBar s|ToggleButton
        {
            chromeColor: #000000;
            color: #EDEDED;
            font-size:10;
            font-weight:bold;
        }

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points