With this example, I just try to show that this behavior comes from Informix 4gl.
If we change it we may have others complain that we are not more compatible to Informix 4gl...
As a workaround, if your application is GUI only, I would suggest to use only (static) form field attributes and remove the color attributes set by dialogs in the 4gl program. You can change the style of fields dynamically if needed with ui.Form.setElementStyle().