[flexcoders] Re: PopupButton Background Color

2008-09-23 Thread itdanny2002
Dear Jon,

Many thanks.

Danny



[flexcoders] Re: PopupButton Background Color

2008-09-23 Thread itdanny2002
Jon, it works on purely black but not on purely white
any idea ? 



Re: [flexcoders] Re: PopupButton Background Color

2008-09-23 Thread Jon Bradley


On Sep 23, 2008, at 10:47 AM, itdanny2002 wrote:


Jon, it works on purely black but not on purely white
any idea ?



Not sure. I don't particularly have time to check it out.

Highlight is drawn as white, and is something that, oddly, the  
framework engineers failed to include as a CSS driven property (why,  
who knows).


So, on white you should not see the highlight. You're more than  
likely seeing your background.


Maybe set the backgroundAlpha:0.0; in the CSS so that it doesn't  
show at all? Also feel free to set borderStyle:none and/or  
borderAlpha:0.0 just to be certain.


I don't recall if border styles affect the highlight for the Button  
control, which PopUpButton extends. It does for some other controls  
(Panel).


- jb

[flexcoders] Re: PopupButton Background Color

2008-09-23 Thread Tim Hoff

Hi Danny,

Not sure if you figured this out yet, but this CSS works for me:

PopUpButton
{
 color: #ff;
 iconColor: #ff;
 rollOverColor: #cc;
 borderColor: #00;
 fillAlphas: 1, 1, 1, 1;
 fillColors: #00, #00, #00, #00;
 highlightAlphas: 0, 0;
}

-TH

--- In flexcoders@yahoogroups.com, Jon Bradley [EMAIL PROTECTED] wrote:


 On Sep 23, 2008, at 10:47 AM, itdanny2002 wrote:

  Jon, it works on purely black but not on purely white
  any idea ?


 Not sure. I don't particularly have time to check it out.

 Highlight is drawn as white, and is something that, oddly, the
 framework engineers failed to include as a CSS driven property (why,
 who knows).

 So, on white you should not see the highlight. You're more than
 likely seeing your background.

 Maybe set the backgroundAlpha:0.0; in the CSS so that it doesn't
 show at all? Also feel free to set borderStyle:none and/or
 borderAlpha:0.0 just to be certain.

 I don't recall if border styles affect the highlight for the Button
 control, which PopUpButton extends. It does for some other controls
 (Panel).

 - jb