In theory, if your renderer picks a new font color based on a property,
they should be ignoring the default color always.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Whitelock
Sent: Tuesday, March 27, 2007 7:06 AM
To: [email protected]
Subject: [flexcoders] Setting the Font Color for a Selected ComboBox
Item



I'm using a ComboBox with an itemRenderer to control the font color of
items in the dropdown list (items in the dropdown list have their font
color determined by a property value for each item).

I'd like to have the font color for the selected item in the ComboBox
match the font color that the item has in the dropdown list. By
default, this doesn't happen. If I do a "setStyle" on the ComboBox to
manually set the selected item's font color to match the font color
the item has in the list, this works to set the selected item's font
color, but it also sets the font color for every item in the dropdown
list (it seems to override the itemRenderer).

Is there a way that I can set the font color for a selected item in a
ComboBox without impacting the font color (set by an itemRenderer) of
dropdown list items?

Thanks for any tips!

Paul



 

Reply via email to