PDA

View Full Version : how to style scrollBar of ComboBox or List?


mediaholic
11-26-2005, 11:11 AM
hi, i tryed everthing to style the scrollBar of ComboBox or List(v2 componets), but it simply doesnt work? with v1 components that was not the Problem,
is that possible at all with v2?
This is what i have tryed so far:
_global.style.setStyle("ThemeColor", 0x909F80);
_global.style.setStyle("backgroundColor", 0x909F80);//BGGREEN
_global.styles.List = new CSSStyleDeclaration();
_global.styles.List.setStyle("ThemeColor", 0x909F80);
_global.styles.List.setStyle("backgroundColor", 0x909F80);//BGGREEN
_global.styles.ScrollPane = new CSSStyleDeclaration();
_global.styles.ScrollPane.setStyle("ThemeColor", 0x909F80);
_global.styles.ScrollPane.setStyle("backgroundColo r", 0x909F80);//BGGREEN
_global.styles.ComboBox = new CSSStyleDeclaration();
_global.styles.ComboBox .setStyle("ThemeColor", 0x909F80);
_global.styles.ComboBox .setStyle("backgroundColor", 0x909F80);//BGGREEN

cann anyone help?

goliat
12-05-2005, 09:09 PM
hi there...have you tried this?!

In the Supported Styles documentaition you have a list of the styles and a description.

scrollTrackColor: The scroll track for a scroll bar. The default value is 0xEFEEEF (light gray).

___________
___________

goliat
12-05-2005, 10:55 PM
well, sorry...i have to tell you that ive tryed to use what i posted before, and i think that in other to work for shure, you have to target a specific instance of the component...

myList.setPropertiesAt(3, {backgroundColor:0x000000});