PDA

View Full Version : setting a components font size


thelandem
06-06-2008, 08:24 PM
Is there a way to set a ComboBox's font size? I tried "x_cmp.setStyle("fontSize", 24);" but it didn't seem to do anything.

tarafenton
06-06-2008, 08:47 PM
pretty sure this will work, it works for a textarea
just change myTextArea to the name of your combo box
var textFormat = new TextFormat("Arial", 18, 0xFF0000);
myTextArea.setStyle("textFormat", textFormat);

thelandem
06-06-2008, 09:01 PM
That didn't seem to work. It compiled and ran, it just didn't seem to have any effect on my ComboBox

thelandem
06-10-2008, 02:31 AM
Anyone? Any ideas....?