Once we thought to do the same thing in our solutions, but abandon the idea as we 'found' that we will be forced to attach two global methods to each field (onFocusGained/Lost).
As Maarten confirm it to me, you used a similar strategy to implement it in SAN. But this is time consuming and it seems to me that adding two calls for every field object in big solutions is not a good idea...
So, can you please provide us with an effective way to actively change the appearance of a field when it gets and loses focus?
My two cents on this:
- - a new property for fields (+Labels?), focusBackgroud, where we could choose the highlight color for the object, by analogy with imageMedia/rolloverImageMedia properties.
- a mechanism similar to the rowBgColorCalculation for the form (or the entire solution) highlightFieldBgColorCalculation
- even a special selected styleclass for fields, to be used in css (my preference if it is possible)
Yet not a major issue, this could let all servoy developers offer a 'visually important' interface feature to their customers.