I am working on a web application that displays a lot of data to the user in comboboxes. Some users do not have permission to make changes. Some do. When the user does not have permission to make changes, the comboboxes are disabled (good). That means the text is grayed out. Unfortunately, when the text is grayed out it is harder to read. I want to be able to change the foreground text color to black (#000000) so it is easier to read. I am able to do this programmatically like this:
elements.combobox1.fgcolor=“#000000”
This works fine if the user is using Firefox, Safari, or Chrome. The combobox text turns black, it is readable, and the element remains disabled (good ). However… if the user is using MS Internet Explorer, this exact same code does not change the combobox color. The text remains gray (not good ). Is there some way to fix this problem or work around it? Most of my users use Internet Explorer and will probably resist changing to another browser.
You could put a label behind the combobox on the same dataprovider and when a user (who may not edit these fields) opens this form you could hide the combobox and show the label.
I suppose if that is the only option, it would probably work. There are a lot of elements on this form though. Tons! It will take a long time to fix it. It will also make the form seem very cluttered in Servoy developer with all the overlapping elements. If a better solution exists, I would love to hear it!
I am curious why this is even a problem in the first place. Is this a Servoy defect? IE strangeness?
dfrazier:
I am curious why this is even a problem in the first place. Is this a Servoy defect? IE strangeness?
i would guess it is a M$ problem. We were also not happy how IE shows disabled buttons, so we ended up adding a greyed img label behind all buttons and hide the normal button instead of disabling them. If there is a better solution I would also love to hear it.