Daniel
2005-10-18 00:18:33 UTC
Hi,
I have a rather large number of spinners in my application. Their
values vary but often ranges from 1 to 99. So I want the user to be
able to type in the number if they want to make a big change.
Now as we know, users never do what you intend them to do. So at
present if the user types in 9000, nothing happens until the spinner
looses focus and then it changes to the previous value. I would like
at that moment display a dialogbox or similar to inform the user that
the value they sat was invalid, and that it has been restored.
How do I go about this in the simplest way?
I already "subscribe" to the statechanges, but they are only fired
when a legal value is entered.
Basically all I want is notification that the spinner has rejected the
typed value. Is that possible?
regards
Daniel
I have a rather large number of spinners in my application. Their
values vary but often ranges from 1 to 99. So I want the user to be
able to type in the number if they want to make a big change.
Now as we know, users never do what you intend them to do. So at
present if the user types in 9000, nothing happens until the spinner
looses focus and then it changes to the previous value. I would like
at that moment display a dialogbox or similar to inform the user that
the value they sat was invalid, and that it has been restored.
How do I go about this in the simplest way?
I already "subscribe" to the statechanges, but they are only fired
when a legal value is entered.
Basically all I want is notification that the spinner has rejected the
typed value. Is that possible?
regards
Daniel