Background color in text_area

Is it possible to change the background color of a text_area?

I have a method that changes the color of the fields in a form. Something like:

forms.myForm.elements.myField.bgcolor = '#000000'

It’s very simple but when I run it, all field changes with exception of the text_areas. :shock:

Any suggestions for a workaround?

If it’s not working, than the best way is to file it into the support system of Servoy!

HI,
irenem,

I have also used

Code:
forms.myForm.elements.myField.bgcolor = ‘#000000

Sorry All. It was not working in my case also

t’ll not work. It will work if ur form in tab pannel and tab pannel should placed, where ur calling the color change method.

This does not make sense to me. Is at least not expected behavior.

Like HJK said, it should work. In both web and smart client…

Tank you all for the replies.

The strange thing is that it works in the web client, it just dont in the developer.

Anyway, I have filed it to the support system i’m wandering what they will say.

TIP: UNCHECK the “transparent” checkbox on the element. Then it will show the background color. :D

Hello Bob,

I feel like an idiot. Thank you to remind me that life is not always so complicated.

hmm, should have thought about that…

Thanks Bob, for making my day :)