05-07-2020, 08:10 AM
05-07-2020, 06:50 PM
Oh, the color is clMenuHighlight.
So when this is your backgroundcolor…...
Can one change this?
So when this is your backgroundcolor…...
Can one change this?
05-08-2020, 10:39 AM
This color is set by the browser and each browser has its own (you can compare a list box in Chrome and Firefox for instance and see that they differ).
The only possible way to change that is using CSS. Unless it is a requirement that you can't get away from, I *strongly* recommend that you don't go down that route... Each browser has a different way of dealing with styles for internal listbox and combobox elements (the <option> tag) and I don't believe it is possible to get consistent results among browsers, including the mobile ones
You can start here:
https://developer.mozilla.org/en-US/docs...S/:checked
Please notice that you can include the styles using IWForm.ExtraHeader property adding the style tag directly to it as in:
<style>
option:hover {
background: lime;
color: red
}
</style>
The only possible way to change that is using CSS. Unless it is a requirement that you can't get away from, I *strongly* recommend that you don't go down that route... Each browser has a different way of dealing with styles for internal listbox and combobox elements (the <option> tag) and I don't believe it is possible to get consistent results among browsers, including the mobile ones
You can start here:
https://developer.mozilla.org/en-US/docs...S/:checked
Please notice that you can include the styles using IWForm.ExtraHeader property adding the style tag directly to it as in:
<style>
option:hover {
background: lime;
color: red
}
</style>