XAS-57 test when creating the editor if the widget allows expressions.

Method was already in the interface, but was not used!

Now in NumberBox, if expressions are swicthed off for a given widget the
number will turn red if invalid.