View Full Version : changing combobox text color?

04-08-2003, 08:01 PM
thank you for reading this post and for any assistance provided.

My question is simply how to change the text color in the comboxbox.

Ive tried a few things, but none have seemed to work.

thanks in advance.

04-08-2003, 08:16 PM
The two style properties that you would be most interested in for text color would be

comboInstance.setStyleProperty("textColor", 0xFF0000);
comboInstance.setStyleProperty("textSelected", 0xFF00FF);

Look in the reference panel under FStyleFormat for all the possible properties for setStyleProperty

04-08-2003, 10:21 PM
that was exactly what i needed.
Thanks for the quick reply and the much needed assistance.
It so easy, yet i spent hours looking. lol

thanks again!

09-23-2003, 11:26 PM
where would i find that code?

12-07-2004, 09:15 PM
I've been looking for how to do this for a while to. No matter where i put it however I get the error

Statement must appear within on/onClipEvent handler
myCombo.setStyleProperty("textColor", 0xFF0000);

Does it just tell you to stick random stuff in an on/event when it has no better idea of what to do? Cause I've been getting this error alot when I try to change any aspect of the combo or list component? I've tried adding the code in the frame and on the comp directly got the error. I tried it with the on/event crap and i either got other error or got no error and nothing happened?