PDA

View Full Version : Style combobox


ShaolinWood
07-19-2005, 10:24 AM
Sorry if this is a stupid Q, but I've never used a combobox before and now actually have a use for it.

But how do you style it? I can't seem to find any of the components or style attributes, like font, size, color etc...

It currently looks really bad in its default state.

Thanks for any help!!

ShaolinWood
07-19-2005, 10:26 AM
It's a dropdown box by the way...

ShaolinWood
07-19-2005, 11:01 AM
Just for reference this is what I've found:

import mx.styles.CSSStyleDeclaration;
_global.styles.ComboBox = new CSSStyleDeclaration();
_global.styles.ComboBox.setStyle("fontSize", 9);
_global.styles.ComboBox.setStyle("fontFamily", Arial);
_global.styles.ComboBox.setStyle("backgroundColor", 0xFFFFFF);
_global.styles.ComboBox.setStyle("borderStyle", "none");
_global.styles.ComboBox.setStyle("color", 0x01507A);
_global.styles.ComboBox.setStyle("rollOverColor", 0xD0E4F7);
_global.styles.ComboBox.setStyle("selectionColor", 0xFFFFFF);
_global.styles.ComboBox.setStyle("textSelectedColor", 0xFF5211);
_global.styles.ComboBox.setStyle("textRollOverColor", 0x013C5B);

Cheers.