开发者

Style Combobox AS3

开发者 https://www.devze.com 2023-04-01 02:04 出处:网络
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:

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:

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消