Disabled greyed color on ComboBoxes, LAF - 3.5.1

Hi,

I am trying to set up a standardized style sheet and all is working well except for disabled fields (e.g. - ComboBox where the user is forced to choose one of the available entries). One of my style sheet’s purposes is to set a standardized border and background color for each data entry field.

The documentation states that the disabled or “greyed” color is tied into the Look and Feel file (LAF).

Am I correct in thinking that there is no way to set a standardized style-driven color for disabled fields short of using a modified LAF file? The ComboBox is not really “disabled” in the sense of being unavailable for entry; rather, it is “disabled” in the sense of “available choices not being editable”.

If LAF modification is the only option, is this a big job? (I have never done this before).

Thanks

Michael

Hi,

As I understand it, you have a combo-box field with “editable” property set to false (so disabled is false by default). And you want to set it’s background color using a style.

I tried it and it works for me - the correct background color is shown.
What am I missing - please post more details on how you tried this.

Andrei,

I do not have a replicable error event sequence at this point in time.

The problem occured, and then I was able to resolve by turning Editable off, setting background color and then turning the Editable attribute back on.

I just tried it with another ComboBox field and the background color change happened immediately: it worked properly.

Let’s close this thread off for now. If it comes up again and I have a consistent error condition/event sequence and replicable environment I will report it at that time with needed debug/condition info. It’s in the <shrug, I dunno> category for now :)

Thanks for your reply,

Michael

Related information (but with additional issues to the extent of generating a new subject line and post) may be found at:

http://forum.servoy.com/viewtopic.php?t=9207&highlight=