How can I modify the backgroud color of a TXT_FIELD based on enabled property? With CSS?
It work with combobox but with TEXT_FIELD/_AREA only the text in foregroud become grayed.
How can I modify the backgroud color of a TXT_FIELD based on enabled property? With CSS?
It work with combobox but with TEXT_FIELD/_AREA only the text in foregroud become grayed.
If I am correct your background becomes gray when you use readonly instead of enabled (if that is what you want)…
I don’t know if it’s a my style problem but with
readOnly = true
or
enabled = false
there’s the same behaviour: background is white and not gray.
Yeah, when you have a style attached it does not work like this.
You can set it onrecordselect…
Without style work with enabled = false and readOnly = true but I don’t undestand what can I set on onrecordselect ?
The style using application.overrideStyle()?
No not that but you can set the background ‘manually’ on record select based on the status of the field.
gh, dirty solution but if it’s the one…
Funny, why is that dirty
What do you think I need to do/code to get such a thing done in Java.
Nothing less but certainly more.
Maybe there are other solutions but I don’t see why this one is dirty.
But that could just be me
In fact it is good that this is possible.
For one I don’t want a gray background with readonly or enabled so I am happy that the style overrides it (and I know many with me).
On the other hand there is something to say for what you want so there is a way to solve it.
Nice that we can…