I don't want to skin a ComboBox but I want to set its style with setStyle.
I found it can be used a syntax like the one below:
aCb.setStyle("textPadding", 10);
aCb.setStyle("buttonWidth", 10);
What I want to do is the following:
- eliminate the default "divisions" between list items;
- change the rollover color; 开发者_开发问答
Is this possible? How?
Yes. It's hard to answer without knowing what component you are applying the style to.
In Flex 4 for the s:ComboBox:
Rollover colour:
aCb.setStyle("rollOverColor", "#FF0000"); // changes the colour to bright red
Not sure what you mean by divisions. There are various spacing properties including:
aCb.setStyle("paddingTop", 0);
aCb.setStyle("paddingBottom", 0);
aCb.setStyle("leading", 0);
精彩评论