John Levon wrote:

> On Thu, Apr 03, 2003 at 06:13:05PM +0000, Angus Leeming wrote:
> 
>> Make use of my checked_widget class. For example, try and enter an
>> invalid LyXGlueLength in the paragraph dialog, xforms frontend. You'll
>> get visual feedback that the thing is invalid and the Ok,Apply buttons
>> will be disabled till you fix it. Whilst the widget has focus, only the
>> label is red but if you go elsewhere then you REALLY get told ;-P
> 
> Red is culture specific (for a start). Besides, this is an "advanced"
> feature, I think we are probably ok with disabling ok/apply if someone
> comes up with an invalid set of flags for float placement
> 
> regards
> john

Well then, derive a class from checked_widget that does _not_ change the 
colour but does ensure that the Ok,Apply buttons retain a "memory" of this 
invalid entry.

As for "red", is this encoded in std::locale ? (Ok, ok, that was tongue in 
cheek!). More plausibly, we could easily define a "warning" lcolor and use 
that.

-- 
Angus

Reply via email to