Re: widget_text editable and all_events [message #65836] |
Wed, 25 March 2009 11:15 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Vince Hradil writes:
> Well, scenario 2- makes it so that you cannot just backspace out the
> whole thing then start typing. What I would like is for the
> validation to occur if either (1) the user hits CR or (2) the text box
> loses focus (aha!)
It's a good idea, just not that reliable in practice. :-)
If I'm not collecting data from text widgets immediately,
I usually put off validating what is in them until the
user hits the Apply button, or whatever it is that sets
the operation off and makes me require good data. Then
I can do all my checking at once, and give the user
feedback if they need to do something different.
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|